#[non_exhaustive]#[repr(u8)]pub enum ChannelLayout {
Gray = 1,
GrayAlpha = 2,
Rgb = 3,
Rgba = 4,
Bgra = 5,
Oklab = 6,
OklabA = 7,
}Expand description
Channel layout (number and meaning of channels).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gray = 1
Single luminance channel.
GrayAlpha = 2
Luminance + alpha.
Rgb = 3
Red, green, blue.
Rgba = 4
Red, green, blue, alpha.
Bgra = 5
Blue, green, red, alpha (Windows/DirectX byte order).
Oklab = 6
Oklab perceptual color: L, a, b.
OklabA = 7
Oklab perceptual color with alpha: L, a, b, alpha.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelLayout
impl Clone for ChannelLayout
Source§fn clone(&self) -> ChannelLayout
fn clone(&self) -> ChannelLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelLayout
impl Debug for ChannelLayout
Source§impl Display for ChannelLayout
impl Display for ChannelLayout
Source§impl Hash for ChannelLayout
impl Hash for ChannelLayout
Source§impl PartialEq for ChannelLayout
impl PartialEq for ChannelLayout
impl Copy for ChannelLayout
impl Eq for ChannelLayout
impl StructuralPartialEq for ChannelLayout
Auto Trait Implementations§
impl Freeze for ChannelLayout
impl RefUnwindSafe for ChannelLayout
impl Send for ChannelLayout
impl Sync for ChannelLayout
impl Unpin for ChannelLayout
impl UnsafeUnpin for ChannelLayout
impl UnwindSafe for ChannelLayout
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