#[repr(u8)]pub enum Component {
Zero = 1,
One = 2,
R = 3,
G = 4,
B = 5,
A = 6,
}
Expand description
Source channel in a swizzle configuration. Some may redirect onto different physical channels, some may be hardcoded to 0 or 1.
Variants§
Zero = 1
Hardcoded zero
One = 2
Hardcoded one
R = 3
Red channel
G = 4
Green channel
B = 5
Blue channel
A = 6
Alpha channel.
Trait Implementations§
Source§impl Ord for Component
impl Ord for Component
Source§impl PartialOrd for Component
impl PartialOrd for Component
impl Copy for Component
impl Eq for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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