pub enum InputFormat {
Png,
Ppm,
Pam,
Raw,
}Expand description
An image encoding the CLI can read as encoder input.
Variants§
Png
PNG (any color type; normalized to RGBA8).
Ppm
Netpbm binary PPM (P6, RGB).
Pam
Netpbm binary PAM (P7, RGBA).
Raw
Raw row-major pixels; requires --width/--height/--layout.
Implementations§
Source§impl InputFormat
impl InputFormat
Trait Implementations§
Source§impl Clone for InputFormat
impl Clone for InputFormat
impl Copy for InputFormat
Source§impl Debug for InputFormat
impl Debug for InputFormat
impl Eq for InputFormat
Source§impl PartialEq for InputFormat
impl PartialEq for InputFormat
impl StructuralPartialEq for InputFormat
Source§impl ValueEnum for InputFormat
impl ValueEnum for InputFormat
Auto Trait Implementations§
impl Freeze for InputFormat
impl RefUnwindSafe for InputFormat
impl Send for InputFormat
impl Sync for InputFormat
impl Unpin for InputFormat
impl UnsafeUnpin for InputFormat
impl UnwindSafe for InputFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more