[][src]Struct seshat::unicode::CodePoint

pub struct CodePoint { /* fields omitted */ }

A Unicode code point. The valid code point ranges are 0x0 to 0x10FFFF.

Implementations

impl CodePoint[src]

pub fn new(cp: u32) -> Result<CodePoint, &'static str>[src]

Create new CodePoint with value cp.

If cp is greater than 0x10FFFF, returns Err.

pub fn to_u32(&self) -> u32[src]

Convert CodePoint to u32.

Trait Implementations

impl Clone for CodePoint[src]

impl Copy for CodePoint[src]

impl Display for CodePoint[src]

impl Ucd 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> ToString for T where
    T: Display + ?Sized
[src]

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.