[][src]Struct embedded_text::rendering::line::StyledLinePixelIterator

pub struct StyledLinePixelIterator<'a, C, F, SP, A> where
    C: PixelColor,
    F: Font + Copy,
    SP: SpaceConfig<Font = F>,
    A: HorizontalTextAlignment
{ pub cursor: Cursor<F>, // some fields omitted }

Pixel iterator to render a single line of styled text.

Fields

cursor: Cursor<F>

Position information.

Implementations

impl<'a, C, F, SP, A> StyledLinePixelIterator<'a, C, F, SP, A> where
    C: PixelColor,
    F: Font + Copy,
    SP: SpaceConfig<Font = F>,
    A: HorizontalTextAlignment
[src]

#[must_use]pub fn new<V, H>(
    parser: Parser<'a>,
    cursor: Cursor<F>,
    config: SP,
    style: TextBoxStyle<C, F, A, V, H>,
    carried_token: Option<Token<'a>>
) -> Self where
    V: VerticalTextAlignment,
    H: HeightMode
[src]

Creates a new pixel iterator to draw the given character.

#[must_use]pub fn remaining_token(&self) -> Option<Token<'a>>[src]

When finished, this method returns the last partially processed Token, or None if everything was rendered.

#[must_use]pub fn parser(&self) -> Parser<'a>

Notable traits for Parser<'a>

impl<'a> Iterator for Parser<'a> type Item = Token<'a>;
[src]

When finished, this method returns the text parser object.

Trait Implementations

impl<'a, C: Debug, F: Debug, SP: Debug, A: Debug> Debug for StyledLinePixelIterator<'a, C, F, SP, A> where
    C: PixelColor,
    F: Font + Copy,
    SP: SpaceConfig<Font = F>,
    A: HorizontalTextAlignment
[src]

impl<C, F, SP, A, '_> Iterator for StyledLinePixelIterator<'_, C, F, SP, A> where
    C: PixelColor,
    F: Font + Copy,
    SP: SpaceConfig<Font = F>,
    A: HorizontalTextAlignment
[src]

type Item = Pixel<C>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, C, F, SP, A> RefUnwindSafe for StyledLinePixelIterator<'a, C, F, SP, A> where
    A: RefUnwindSafe,
    C: RefUnwindSafe,
    F: RefUnwindSafe,
    SP: RefUnwindSafe

impl<'a, C, F, SP, A> Send for StyledLinePixelIterator<'a, C, F, SP, A> where
    A: Send,
    C: Send,
    F: Send,
    SP: Send

impl<'a, C, F, SP, A> Sync for StyledLinePixelIterator<'a, C, F, SP, A> where
    A: Sync,
    C: Sync,
    F: Sync,
    SP: Sync

impl<'a, C, F, SP, A> Unpin for StyledLinePixelIterator<'a, C, F, SP, A> where
    A: Unpin,
    C: Unpin,
    F: Unpin,
    SP: Unpin

impl<'a, C, F, SP, A> UnwindSafe for StyledLinePixelIterator<'a, C, F, SP, A> where
    A: UnwindSafe,
    C: UnwindSafe,
    F: UnwindSafe,
    SP: 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, 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.