#[repr(i32)]pub enum Channel {
R = 0,
G = 1,
B = 2,
A = 3,
}Expand description
Individual colour / data channel within a pixel.
The numeric value matches the zero-based channel index used by every uncompressed PixelFormat (R=0, G=1, B=2, A=3).
Variants§
R = 0
Red (or single-channel value for R* formats).
G = 1
Green (or second channel for RG* formats).
B = 2
Blue (RGBA* formats only).
A = 3
Alpha (RGBA* formats only).
Trait Implementations§
impl Copy for Channel
impl Eq 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 UnsafeUnpin 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