Struct colstodian::component_structs::ColAlpha [−][src]
#[repr(C)]pub struct ColAlpha<T> { pub col: T, pub alpha: f32, }
Expand description
A bag of components with an alpha channel. Some ColorAlpha
s will Deref
to this so that you can use .alpha
and .col.{component_name}
.
Fields
col: T
alpha: f32
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ColAlpha<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for ColAlpha<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<SrcAlpha, DstAlpha> ConvertToAlphaRaw<DstAlpha> for SrcAlpha where
DstAlpha: ConvertFromAlphaRaw<SrcAlpha>,
impl<SrcAlpha, DstAlpha> ConvertToAlphaRaw<DstAlpha> for SrcAlpha where
DstAlpha: ConvertFromAlphaRaw<SrcAlpha>,