#[derive(Debug)]
pub struct Text {
_bytes: Vec<u8>,
_length: i32,
}
impl Text {
fn encode(s: &str, _replace: bool) -> &[u8] {
s.as_bytes()
}
}
impl From<String> for Text {
fn from(s: String) -> Self {
let bb = Self::encode(&s, true);
Self {
_bytes: bb.into(),
_length: bb.len() as i32,
}
}
}