pub struct Arguments {
pub file_path: String,
pub max_width: usize,
pub max_height: usize,
pub character_ratio: f64,
pub edge_threshold: f64,
}Expand description
file_path- Path to the input image filemax_width- Maximum width of the output ASCII art in charactersmax_height- Maximum height of the output ASCII art in characterscharacter_ratio- Aspect ratio correction for terminal characters (typically 2.0)edge_threshold- Threshold for edge detection (range: 0.0 to 4.0)
Fields§
§file_path: String§max_width: usize§max_height: usize§character_ratio: f64§edge_threshold: f64Auto Trait Implementations§
impl Freeze for Arguments
impl RefUnwindSafe for Arguments
impl Send for Arguments
impl Sync for Arguments
impl Unpin for Arguments
impl UnwindSafe for Arguments
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> 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