pub struct Color {
pub red: u8,
pub green: u8,
pub blue: u8,
}
Expand description
An Red, Green, Blue color structure that can be parsed from and to a CSS compatible string.
Fields§
§red: u8
Red component of the Color
RGB value
green: u8
Green component of the Color
RGB value
blue: u8
Blue component of the Color
RGB value
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Color
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Color
Available on crate feature
serde
only.source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Color> for Color
impl PartialEq<Color> for Color
impl Copy for Color
impl Eq for Color
impl StructuralEq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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