[−][src]Enum embedded_text::alignment::right::RightAlignedState
State variable used by the right aligned text renderer
Variants
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(u32, EmptySpaceIterator<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]
C: PixelColor,
F: Font + Copy,
Auto Trait Implementations
impl<'a, C, F> RefUnwindSafe for RightAlignedState<'a, C, F> where
C: RefUnwindSafe,
F: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<'a, C, F> Send for RightAlignedState<'a, C, F> where
C: Send,
F: Send,
C: Send,
F: Send,
impl<'a, C, F> Sync for RightAlignedState<'a, C, F> where
C: Sync,
F: Sync,
C: Sync,
F: Sync,
impl<'a, C, F> Unpin for RightAlignedState<'a, C, F> where
C: Unpin,
F: Unpin,
C: Unpin,
F: Unpin,
impl<'a, C, F> UnwindSafe for RightAlignedState<'a, C, F> where
C: UnwindSafe,
F: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,