pub trait IntoText { // Required methods fn into_text(&self) -> Result<Text<'static>, Error>; fn to_text(&self) -> Result<Text<'_>, Error>; }
IntoText will convert any type that has a AsRef<[u8]> to a Text.
IntoText
AsRef<[u8]>
Convert the type to a Text.
Convert the type to a Text while trying to copy as less as possible