Struct speedy2d::font::Codepoint [−][src]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Codepoint> for Codepoint
[src]
impl StructuralEq for Codepoint
[src]
impl StructuralPartialEq for Codepoint
[src]
Auto Trait Implementations
impl RefUnwindSafe for Codepoint
impl Send for Codepoint
impl Sync for Codepoint
impl Unpin for Codepoint
impl UnwindSafe for Codepoint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,