Struct embedded_text::rendering::line_iter::LineElementIterator[][src]

pub struct LineElementIterator<'a, F, SP, A> {
    pub cursor: Cursor<F>,
    pub parser: Parser<'a>,
    // some fields omitted
}

Pixel iterator to render a single line of styled text.

Fields

cursor: Cursor<F>

Position information.

parser: Parser<'a>

The text to draw.

Implementations

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

#[must_use]
pub fn new(
    parser: Parser<'a>,
    cursor: Cursor<F>,
    config: SP,
    carried_token: Option<Token<'a>>,
    tab_size: TabSize<F>
) -> 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, F: Debug, SP: Debug, A: Debug> Debug for LineElementIterator<'a, F, SP, A>[src]

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

type Item = RenderElement

The type of the elements being iterated over.

Auto Trait Implementations

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

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

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

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

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