pub struct Rgb {
pub red: f32,
pub green: f32,
pub blue: f32,
}Expand description
An opaque color as a color picker shows it: straight, sRGB-encoded components in the inclusive unit interval.
Fields§
§red: f32Red component.
green: f32Green component.
blue: f32Blue component.
Implementations§
Trait Implementations§
impl Copy for Rgb
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 UnsafeUnpin 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