[][src]Struct embedded_text::rendering::StyledTextBoxIterator

pub struct StyledTextBoxIterator<'a, C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment,
    StyledTextBox<'a, C, F, A>: StateFactory
{ pub parser: Parser<'a>, pub style: TextBoxStyle<C, F, A>, pub cursor: Cursor<F>, pub state: <StyledTextBox<'a, C, F, A> as StateFactory>::PixelIteratorState, }

Pixel iterator for styled text.

Fields

parser: Parser<'a>

Parser to process the text during rendering

style: TextBoxStyle<C, F, A>

Style used for rendering

cursor: Cursor<F>

Position information

state: <StyledTextBox<'a, C, F, A> as StateFactory>::PixelIteratorState

State information used by the rendering algorithms

Implementations

impl<'a, C, F, A> StyledTextBoxIterator<'a, C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment,
    StyledTextBox<'a, C, F, A>: StateFactory
[src]

#[must_use]pub fn new(styled: &'a StyledTextBox<'a, C, F, A>) -> Self[src]

Creates a new pixel iterator to render the styled [TextBox]

Trait Implementations

impl<'_, C, F> Iterator for StyledTextBoxIterator<'_, C, F, CenterAligned> where
    C: PixelColor,
    F: Font + Copy
[src]

type Item = Pixel<C>

The type of the elements being iterated over.

impl<'_, C, F> Iterator for StyledTextBoxIterator<'_, C, F, Justified> where
    C: PixelColor,
    F: Font + Copy
[src]

type Item = Pixel<C>

The type of the elements being iterated over.

impl<'_, C, F> Iterator for StyledTextBoxIterator<'_, C, F, LeftAligned> where
    C: PixelColor,
    F: Font + Copy
[src]

type Item = Pixel<C>

The type of the elements being iterated over.

impl<'_, C, F> Iterator for StyledTextBoxIterator<'_, C, F, RightAligned> where
    C: PixelColor,
    F: Font + Copy
[src]

type Item = Pixel<C>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, C, F, A> !RefUnwindSafe for StyledTextBoxIterator<'a, C, F, A>

impl<'a, C, F, A> !Send for StyledTextBoxIterator<'a, C, F, A>

impl<'a, C, F, A> !Sync for StyledTextBoxIterator<'a, C, F, A>

impl<'a, C, F, A> !Unpin for StyledTextBoxIterator<'a, C, F, A>

impl<'a, C, F, A> !UnwindSafe for StyledTextBoxIterator<'a, C, F, A>

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.