/// Text token used by the `TextParser`
#[derive(Debug, PartialEq, Eq, Clone)]pubenumTextToken{// Text token containing the text and its length
Text { text:String, len:usize},// Newline token
Newline,// End of the text token
End,}implTextToken{/// Creates new text token
pubfntext(text: String, len:usize)->Self{Self::Text { text, len }}}