Enum embedded_text::Token [−][src]
pub enum Token<'a, C> where
C: PixelColor, { NewLine, CarriageReturn, Tab, Whitespace(u32, &'a str), Word(&'a str), Break(&'a str, &'a str), ChangeTextStyle(ChangeTextStyle<C>), EscapeSequence(AnsiSequence), }
Expand description
A text token
Variants
A newline character.
A \r character.
A \t character.
A number of whitespace characters.
Word(&'a str)A word (a sequence of non-whitespace characters).
A possible wrapping point
ChangeTextStyle(ChangeTextStyle<C>)Change of text style.
EscapeSequence(AnsiSequence)An ANSI escape sequence
Trait Implementations
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for Token<'a, C> where
C: RefUnwindSafe, impl<'a, C> UnwindSafe for Token<'a, C> where
C: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
type Output = T
type Output = TShould always be Self
Casts the value.
Casts the value.
Casts the value.