[][src]Enum embedded_text::rendering::line::LineState

pub enum LineState<'a, C, F> where
    C: PixelColor,
    F: Font + Copy
{ FetchNext, ProcessToken(Token<'a>), Word(Chars<'a>, StyledCharacterIterator<C, F>), Whitespace(u32EmptySpaceIterator<C, F>), Done(Option<Token<'a>>), }

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(u32EmptySpaceIterator<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

impl<'a, C: Debug, F: Debug> Debug for LineState<'a, C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

Auto Trait Implementations

impl<'a, C, F> RefUnwindSafe for LineState<'a, C, F> where
    C: RefUnwindSafe,
    F: RefUnwindSafe

impl<'a, C, F> Send for LineState<'a, C, F> where
    C: Send,
    F: Send

impl<'a, C, F> Sync for LineState<'a, C, F> where
    C: Sync,
    F: Sync

impl<'a, C, F> Unpin for LineState<'a, C, F> where
    C: Unpin,
    F: Unpin

impl<'a, C, F> UnwindSafe for LineState<'a, C, F> where
    C: UnwindSafe,
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.