pub enum BitDepth {
One,
Two,
Four,
Eight,
Sixteen,
}Expand description
Bits per sample (per palette index for indexed images).
Variants§
One
1 bit per sample.
Two
2 bits per sample.
Four
4 bits per sample.
Eight
8 bits per sample.
Sixteen
16 bits per sample, stored big-endian.
Implementations§
Trait Implementations§
impl Copy for BitDepth
impl Eq for BitDepth
Source§impl Ord for BitDepth
impl Ord for BitDepth
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for BitDepth
impl PartialOrd for BitDepth
impl StructuralPartialEq for BitDepth
Auto Trait Implementations§
impl Forget for BitDepth
impl Freeze for BitDepth
impl Move for BitDepth
impl RefUnwindSafe for BitDepth
impl Send for BitDepth
impl Sync for BitDepth
impl Unpin for BitDepth
impl UnsafeUnpin for BitDepth
impl UnwindSafe for BitDepth
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