#[repr(u8)]pub enum Channels {
Rgb = 3,
Rgba = 4,
}Expand description
Number of 8-bit channels in a pixel.
Variants§
Implementations§
Trait Implementations§
impl Copy for Channels
impl Eq for Channels
Source§impl From<Channels> for RawChannels
impl From<Channels> for RawChannels
Source§impl From<RawChannels> for Channels
impl From<RawChannels> for Channels
Source§fn from(value: RawChannels) -> Self
fn from(value: RawChannels) -> Self
Converts to this type from the input type.
Source§impl Ord for Channels
impl Ord for Channels
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Channels
impl PartialOrd for Channels
impl StructuralPartialEq for Channels
Auto Trait Implementations§
impl Freeze for Channels
impl RefUnwindSafe for Channels
impl Send for Channels
impl Sync for Channels
impl Unpin for Channels
impl UnsafeUnpin for Channels
impl UnwindSafe for Channels
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