[][src]Enum embedded_text::alignment::right::RightAlignedState

pub enum RightAlignedState<'a, C, F> where
    C: PixelColor,
    F: Font + Copy
{ NextWord, LineBreak(Chars<'a>), MeasureLine(Chars<'a>), DrawWord(Chars<'a>), DrawCharacter(Chars<'a>, StyledCharacterIterator<C, F>), DrawWhitespace(u32EmptySpaceIterator<C, F>), }

State variable used by the right aligned text renderer

Variants

NextWord

This state processes the next token in the text.

LineBreak(Chars<'a>)

This state handles a line break after a newline character or word wrapping.

MeasureLine(Chars<'a>)

This state measures the next line to calculate the position of the first word.

DrawWord(Chars<'a>)

This state processes the next character in a word.

DrawCharacter(Chars<'a>, StyledCharacterIterator<C, F>)

This state renders a character, then passes the rest of the character iterator to DrawWord.

DrawWhitespace(u32EmptySpaceIterator<C, F>)

This state renders whitespace.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

impl<'a, C, F> UnwindSafe for RightAlignedState<'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.