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

pub struct StyledTextBoxIterator<'a, C, F, A, V, H> where
    C: PixelColor,
    F: Font + Copy,
    A: HorizontalTextAlignment,
    V: VerticalTextAlignment,
    H: HeightMode,
    StyledTextBox<'a, C, F, A, V, H>: StateFactory<'a, F>, 
{ pub style: TextBoxStyle<C, F, A, V, H>, pub state: <StyledTextBox<'a, C, F, A, V, H> as StateFactory<'a, F>>::PixelIteratorState, }

Pixel iterator for styled text.

Fields

style: TextBoxStyle<C, F, A, V, H>

Style used for rendering.

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

State information used by the rendering algorithms.

Implementations

impl<'a, C, F, A, V, H> StyledTextBoxIterator<'a, C, F, A, V, H> where
    C: PixelColor,
    F: Font + Copy,
    A: HorizontalTextAlignment,
    V: VerticalTextAlignment,
    H: HeightMode,
    StyledTextBox<'a, C, F, A, V, H>: StateFactory<'a, F>, 
[src]

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

Creates a new pixel iterator to render the styled TextBox.

Trait Implementations

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

type Item = Pixel<C>

The type of the elements being iterated over.

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

type Item = Pixel<C>

The type of the elements being iterated over.

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

type Item = Pixel<C>

The type of the elements being iterated over.

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

type Item = Pixel<C>

The type of the elements being iterated over.

Auto Trait Implementations

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

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

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

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

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

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.