[][src]Struct embedded_text::rendering::StyledCharacterIterator

pub struct StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
{ pub character: char, // some fields omitted }

Pixel iterator to render a styled character

Fields

character: char

The character to draw.

Implementations

impl<C, F> StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

#[must_use]pub fn new(character: char, pos: Point, style: TextStyle<C, F>) -> Self[src]

Creates a new pixel iterator to draw the given character.

Trait Implementations

impl<C: Clone, F: Clone> Clone for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C: Debug, F: Debug> Debug for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C: Default, F: Default> Default for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C: Eq, F: Eq> Eq for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C: Hash, F: Hash> Hash for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C, F> Iterator for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

type Item = Pixel<C>

The type of the elements being iterated over.

impl<C: Ord, F: Ord> Ord for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C: PartialEq, F: PartialEq> PartialEq<StyledCharacterIterator<C, F>> for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C: PartialOrd, F: PartialOrd> PartialOrd<StyledCharacterIterator<C, F>> for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C, F> StructuralEq for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

impl<C, F> StructuralPartialEq for StyledCharacterIterator<C, F> where
    C: PixelColor,
    F: Font + Copy
[src]

Auto Trait Implementations

impl<C, F> RefUnwindSafe for StyledCharacterIterator<C, F> where
    C: RefUnwindSafe,
    F: RefUnwindSafe

impl<C, F> Send for StyledCharacterIterator<C, F> where
    C: Send,
    F: Send

impl<C, F> Sync for StyledCharacterIterator<C, F> where
    C: Sync,
    F: Sync

impl<C, F> Unpin for StyledCharacterIterator<C, F> where
    C: Unpin,
    F: Unpin

impl<C, F> UnwindSafe for StyledCharacterIterator<C, F> where
    C: UnwindSafe,
    F: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.