Struct primitives::foundation::colorspace::RgbColor
source · [−]Expand description
Rgb color representation with u8 components
Fields
red: u8
Red component
green: u8
Green component
blue: u8
Blue component
Implementations
Trait Implementations
sourceimpl GetAlpha<RgbColor> for RgbaColor
impl GetAlpha<RgbColor> for RgbaColor
sourcefn get_opacity(&self) -> f32
fn get_opacity(&self) -> f32
Retrieve the alpha component as opacity
sourcefn get_transparency(&self) -> f32
fn get_transparency(&self) -> f32
Retrieve the alpha component as transparency
impl ColorSpace for RgbColor
impl ColorTransition for RgbColor
impl Copy for RgbColor
impl Eq for RgbColor
impl NonRadialSpace for RgbColor
impl NonSaturationSpace for RgbColor
impl StructuralEq for RgbColor
impl StructuralPartialEq for RgbColor
Auto Trait Implementations
impl RefUnwindSafe for RgbColor
impl Send for RgbColor
impl Sync for RgbColor
impl Unpin for RgbColor
impl UnwindSafe for RgbColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more