[][src]Struct embedded_text::rendering::character::Glyph

pub struct Glyph<F: Font> { /* fields omitted */ }

Represents a glyph (a symbol) to be drawn.

Implementations

impl<F> Glyph<F> where
    F: Font
[src]

#[must_use]pub fn new(c: char) -> Self[src]

Creates a glyph from a character.

#[must_use]pub fn point(&self, p: Point) -> bool[src]

Returns the value of a given point:

  • true for foreground pixels
  • false for background pixels

Trait Implementations

impl<F: Clone + Font> Clone for Glyph<F>[src]

impl<F: Copy + Font> Copy for Glyph<F>[src]

impl<F: Debug + Font> Debug for Glyph<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for Glyph<F> where
    F: RefUnwindSafe

impl<F> Send for Glyph<F> where
    F: Send

impl<F> Sync for Glyph<F> where
    F: Sync

impl<F> Unpin for Glyph<F> where
    F: Unpin

impl<F> UnwindSafe for Glyph<F> where
    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<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.