Struct primitives::foundation::colorspace::prelude::Alpha
source · [−]pub struct Alpha<C: ColorSpace> { /* private fields */ }
Expand description
Represents the color with aplha component
Implementations
Trait Implementations
sourceimpl<C: AdjustHue + ColorSpace> AdjustHue for Alpha<C>
impl<C: AdjustHue + ColorSpace> AdjustHue for Alpha<C>
sourcefn adjust_hue(self, delta: f32) -> Self
fn adjust_hue(self, delta: f32) -> Self
Adjust hue component of color with delta
sourcefn complement(self) -> Self
fn complement(self) -> Self
Rotate hue component with 180 degrees
sourceimpl<C: Clone + ColorSpace> Clone for Alpha<C>
impl<C: Clone + ColorSpace> Clone for Alpha<C>
sourceimpl<C: Debug + ColorSpace> Debug for Alpha<C>
impl<C: Debug + ColorSpace> Debug for Alpha<C>
sourceimpl<C: ColorSpace> GetAlpha<C> for Alpha<C>
impl<C: ColorSpace> GetAlpha<C> for Alpha<C>
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
sourceimpl<C: ColorSpace> HasAlpha<C> for Alpha<C>
impl<C: ColorSpace> HasAlpha<C> for Alpha<C>
sourceimpl<C: Lighten + ColorSpace> Lighten for Alpha<C>
impl<C: Lighten + ColorSpace> Lighten for Alpha<C>
sourceimpl<C: Round + ColorSpace> Round for Alpha<C>
impl<C: Round + ColorSpace> Round for Alpha<C>
sourceimpl<C: Saturate + ColorSpace> Saturate for Alpha<C>
impl<C: Saturate + ColorSpace> Saturate for Alpha<C>
sourceimpl<C: ColorSpace> SetAlpha<C> for Alpha<C>
impl<C: ColorSpace> SetAlpha<C> for Alpha<C>
impl<C: Copy + ColorSpace> Copy for Alpha<C>
Auto Trait Implementations
impl<C> RefUnwindSafe for Alpha<C> where
C: RefUnwindSafe,
impl<C> Send for Alpha<C> where
C: Send,
impl<C> Sync for Alpha<C> where
C: Sync,
impl<C> Unpin for Alpha<C> where
C: Unpin,
impl<C> UnwindSafe for Alpha<C> where
C: UnwindSafe,
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