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>), MoveCursor { chars: i32, draw_background: bool, }, }
Expand description
A text token
Variants
A newline character.
A \r character.
A \t character.
A number of whitespace characters.
A word (a sequence of non-whitespace characters).
Tuple Fields of Word
0: &'a strA possible wrapping point
Change of text style.
Tuple Fields of ChangeTextStyle
0: ChangeTextStyle<C>Move the cursor by a number of characters.
Fields of MoveCursor
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 = T
Should always be Self
Casts the value.
Casts the value.
Casts the value.