pub struct Rgb {
pub r: f64,
pub g: f64,
pub b: f64,
}
Expand description
Rgb : An RGB color
Fields§
§r: f64
Red channel value, between 0 and 1.
g: f64
Green channel value, between 0 and 1.
b: f64
Blue channel value, between 0 and 1.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rgb
impl<'de> Deserialize<'de> for Rgb
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
impl StructuralPartialEq for Rgb
Auto Trait Implementations§
impl Freeze for Rgb
impl RefUnwindSafe for Rgb
impl Send for Rgb
impl Sync for Rgb
impl Unpin for Rgb
impl UnwindSafe for Rgb
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