[][src]Struct asciify::AsciiBuilder

pub struct AsciiBuilder { /* fields omitted */ }

Implementations

impl AsciiBuilder[src]

pub fn new_from_path(path: PathBuf) -> Self[src]

pub fn new(path: PathBuf) -> Self[src]

👎 Deprecated since 0.1.5:

please use new_from_path instead

pub fn new_from_image(image: DynamicImage) -> Self[src]

pub fn set_deep(self, deep: bool) -> Self[src]

pub fn set_invert(self, invert: bool) -> Self[src]

pub fn set_resize(self, resize: (u32, u32)) -> Self[src]

pub fn build(&self) -> String[src]

pub fn to_std_out(&self, use_color: bool)[src]

Writes the image to standard output the image is formatted with ANSI colors if use_color is true

pub fn to_stream_colored(&self, stream: &mut dyn WriteColor)[src]

Writes a colored version of the image to stream using ANSI code

pub fn to_stream(&self, stream: &mut dyn Write)[src]

Writes the image to stream

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.