Enum png_decoder::BitDepth
source · [−]#[repr(u8)]
pub enum BitDepth {
One,
Two,
Four,
Eight,
Sixteen,
}
Variants
One
Two
Four
Eight
Sixteen
Trait Implementations
sourceimpl TryFrom<u8> for BitDepth
impl TryFrom<u8> for BitDepth
type Error = TryFromPrimitiveError<BitDepth>
type Error = TryFromPrimitiveError<BitDepth>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for BitDepth
impl TryFromPrimitive for BitDepth
type Primitive = u8
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BitDepth
impl Eq for BitDepth
impl StructuralEq for BitDepth
impl StructuralPartialEq for BitDepth
Auto Trait Implementations
impl RefUnwindSafe for BitDepth
impl Send for BitDepth
impl Sync for BitDepth
impl Unpin for BitDepth
impl UnwindSafe for BitDepth
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more