Trait ansi_to_tui::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]>,