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

pub struct StyledLineIterator<'a, C, F, SP: SpaceConfig> where
    C: PixelColor,
    F: Font + Copy
{ pub cursor: Cursor<F>, pub parser: Parser<'a>, // some fields omitted }

Pixel iterator to render a styled character

Fields

cursor: Cursor<F>

Position information

parser: Parser<'a>

The text to draw.

Implementations

impl<'a, C, F, SP> StyledLineIterator<'a, C, F, SP> where
    C: PixelColor,
    F: Font + Copy,
    SP: SpaceConfig
[src]

#[must_use]pub fn new(
    parser: Parser<'a>,
    cursor: Cursor<F>,
    config: SP,
    style: TextStyle<C, F>,
    carried_token: Option<Token<'a>>
) -> Self
[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.

Trait Implementations

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

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

type Item = Pixel<C>

The type of the elements being iterated over.

Auto Trait Implementations

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

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

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

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

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