pub struct HexColor(pub u8, pub u8, pub u8);Expand description
Represents a color in the RGB format using hexadecimal notation.
Tuple Fields§
§0: u8Red component of the color.
1: u8Green component of the color.
2: u8Blue component of the color.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HexColor
impl<'de> Deserialize<'de> for HexColor
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for HexColor
impl Eq for HexColor
impl StructuralPartialEq for HexColor
Auto Trait Implementations§
impl Freeze for HexColor
impl RefUnwindSafe for HexColor
impl Send for HexColor
impl Sync for HexColor
impl Unpin for HexColor
impl UnwindSafe for HexColor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more