Enum Channel
#[repr(i32)]pub enum Channel {
Alpha = 0,
Red = 1,
Green = 2,
Blue = 3,
Luminance = 4,
}Expand description
Defines the mask texture channels that you can use as the mask.
Variants§
Alpha = 0
Uses the alpha channel as the mask.
Red = 1
Uses the red color channel as the mask.
Green = 2
Uses the green color channel as the mask.
Blue = 3
Uses the blue color channel as the mask.
Luminance = 4
Uses the luminance calculated from the red, green, and blue color channels as the mask.
Implementations§
Trait Implementations§
§impl VariantConstraint for Channel
impl VariantConstraint for Channel
impl Copy for Channel
impl Eq for Channel
impl PropertyTypeConstraint for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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