pub enum ChannelLayout {
Gray,
GrayAlpha,
Rgb,
Rgba,
}Expand description
The channel layout of a pixel, independent of sample type.
Exhaustive for the same reason as SampleKind: kernels dispatch on it.
Variants§
Gray
Single luminance channel.
GrayAlpha
Luminance plus unassociated alpha.
Rgb
Red, green, blue.
Rgba
Red, green, blue, plus unassociated alpha.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelLayout
impl Clone for ChannelLayout
impl Copy for ChannelLayout
Source§impl Debug for ChannelLayout
impl Debug for ChannelLayout
impl Eq for ChannelLayout
Source§impl Hash for ChannelLayout
impl Hash for ChannelLayout
Source§impl PartialEq for ChannelLayout
impl PartialEq 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