Enum embedded_text::rendering::line::LineState
source · pub enum LineState<'a, C, F>{
FetchNext,
ProcessToken(Token<'a>),
Word(Chars<'a>, StyledCharacterIterator<C, F>),
Whitespace(u32, EmptySpaceIterator<C, F>),
Done(Option<Token<'a>>),
}Expand description
Internal state used to render a line
Variants§
FetchNext
Fetch next token
ProcessToken(Token<'a>)
Decide what to do next
Word(Chars<'a>, StyledCharacterIterator<C, F>)
Render a word
Whitespace(u32, EmptySpaceIterator<C, F>)
Render whitespace
Done(Option<Token<'a>>)
Signal that the renderer has finished, store the token that was consumed but not rendered
Trait Implementations§
Auto Trait Implementations§
impl<'a, C, F> Freeze for LineState<'a, C, F>
impl<'a, C, F> RefUnwindSafe for LineState<'a, C, F>where
F: RefUnwindSafe,
C: RefUnwindSafe,
impl<'a, C, F> Send for LineState<'a, C, F>
impl<'a, C, F> Sync for LineState<'a, C, F>
impl<'a, C, F> Unpin for LineState<'a, C, F>
impl<'a, C, F> UnwindSafe for LineState<'a, C, F>where
F: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more