pub struct AsciiArt {
pub pixel_aligned: bool,
pub reverse_color: bool,
pub font_size: f32,
pub char_set: AsciiSet,
pub color_mode: AsciiColorMode,
}
Fields§
§pixel_aligned: bool
§reverse_color: bool
§font_size: f32
§char_set: AsciiSet
§color_mode: AsciiColorMode
Implementations§
Source§impl AsciiArt
impl AsciiArt
pub fn render_path(&self, path: impl AsRef<Path>) -> Result<AsciiCanvas>
pub fn render_bytes(&self, bytes: &[u8]) -> Result<AsciiCanvas>
pub fn render(&self, img: DynamicImage) -> AsciiCanvas
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsciiArt
impl RefUnwindSafe for AsciiArt
impl !Send for AsciiArt
impl !Sync for AsciiArt
impl Unpin for AsciiArt
impl UnwindSafe for AsciiArt
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