Struct speedy2d::font::Codepoint[][src]

pub struct Codepoint { /* fields omitted */ }

A struct representing a Unicode codepoint, for the purposes of text layout. The user_index field allows you to determine which output glyph corresponds to which input codepoint.

Implementations

impl Codepoint[src]

pub const ZERO_WIDTH_SPACE: char[src]

The Unicode codepoint for a zero width space. You may use this to denote places where it would be appropriate to insert a line break when wrapping.

#[must_use]pub fn new(user_index: UserGlyphIndex, codepoint: char) -> Self[src]

Instantiates a new Codepoint. The value provided for user_index will be present in the corresponding FormattedGlyph object returned during layout.

Trait Implementations

impl Clone for Codepoint[src]

impl Debug for Codepoint[src]

impl Eq for Codepoint[src]

impl Hash for Codepoint[src]

impl PartialEq<Codepoint> for Codepoint[src]

impl StructuralEq for Codepoint[src]

impl StructuralPartialEq for Codepoint[src]

Auto Trait Implementations

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.