pub struct Options {
pub image: (String, PathBuf),
pub size: (u32, u32),
pub preserve_aspect: bool,
pub ansi_out: Option<AnsiOutputFormat>,
}Expand description
Representation of the application’s all configurable values.
Fields§
§image: (String, PathBuf)Image file to display.
This tuple contains the plaintext name (user-friendly) and a normalised path (programmer-friendly).
size: (u32, u32)Output size. Default: detected from terminal size or no default.
preserve_aspect: boolWhether to preserve the image’s aspect ratio when resizing. Default: true.
ansi_out: Option<AnsiOutputFormat>Whether to output ANSI escapes and in which format. Default: None on Windooze when not writing to a file.
Implementations§
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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