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

pub struct StyledTextBoxIterator<'a, C, F, A, V, H, SP> where
    C: PixelColor,
    F: Font + Copy
{ /* fields omitted */ }

Pixel iterator for styled text.

Implementations

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

#[must_use]pub fn new(
    styled: &StyledTextBox<'a, C, F, A, V, H>,
    f: fn(_: TextBoxStyle<C, F, A, V, H>, _: Option<Token<'a>>, _: Cursor<F>, _: Parser<'a>) -> StyledLinePixelIterator<'a, C, F, SP, A, V, H>
) -> Self
[src]

Creates a new pixel iterator to render the styled TextBox.

Trait Implementations

impl<'a, C, F, A, V, H, SP> Iterator for StyledTextBoxIterator<'a, C, F, A, V, H, SP> where
    C: PixelColor + From<Rgb>,
    F: Font + Copy,
    A: HorizontalTextAlignment,
    V: VerticalTextAlignment,
    H: HeightMode,
    SP: SpaceConfig<Font = F>, 
[src]

type Item = Pixel<C>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, C, F, A, V, H, SP> RefUnwindSafe for StyledTextBoxIterator<'a, C, F, A, V, H, SP> where
    A: RefUnwindSafe,
    C: RefUnwindSafe,
    F: RefUnwindSafe,
    H: RefUnwindSafe,
    SP: RefUnwindSafe,
    V: RefUnwindSafe

impl<'a, C, F, A, V, H, SP> Send for StyledTextBoxIterator<'a, C, F, A, V, H, SP> where
    A: Send,
    C: Send,
    F: Send,
    H: Send,
    SP: Send,
    V: Send

impl<'a, C, F, A, V, H, SP> Sync for StyledTextBoxIterator<'a, C, F, A, V, H, SP> where
    A: Sync,
    C: Sync,
    F: Sync,
    H: Sync,
    SP: Sync,
    V: Sync

impl<'a, C, F, A, V, H, SP> Unpin for StyledTextBoxIterator<'a, C, F, A, V, H, SP> where
    A: Unpin,
    C: Unpin,
    F: Unpin,
    H: Unpin,
    SP: Unpin,
    V: Unpin

impl<'a, C, F, A, V, H, SP> UnwindSafe for StyledTextBoxIterator<'a, C, F, A, V, H, SP> where
    A: UnwindSafe,
    C: UnwindSafe,
    F: UnwindSafe,
    H: UnwindSafe,
    SP: UnwindSafe,
    V: 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<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> Same<T> for T

type Output = T

Should always be Self

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.