television_previewers::ansi

Trait IntoText

Source
pub trait IntoText {
    // Required methods
    fn into_text(&self) -> Result<Text<'static>, Error>;
    fn to_text(&self) -> Result<Text<'_>, Error>;
}
Expand description

IntoText will convert any type that has a AsRef<[u8]> to a Text.

Required Methods§

Source

fn into_text(&self) -> Result<Text<'static>, Error>

Convert the type to a Text.

Source

fn to_text(&self) -> Result<Text<'_>, Error>

Convert the type to a Text while trying to copy as less as possible

Implementors§

Source§

impl<T> IntoText for T
where T: AsRef<[u8]>,