pub struct HexColor(pub u8, pub u8, pub u8);
Expand description
Represents a color in the RGB format using hexadecimal notation.
Tuple Fields§
§0: u8
Red component of the color.
1: u8
Green component of the color.
2: u8
Blue 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)