ToCodePoint

Trait ToCodePoint 

Source
pub trait ToCodePoint {
    // Required method
    fn to_code_point(&self) -> CodePoint;
}
Expand description

Trait that convert type to CodePoint.

The source type should always in valid code point range.

Required Methods§

Source

fn to_code_point(&self) -> CodePoint

Creates new CodePoint struct from the source.

Implementations on Foreign Types§

Source§

impl ToCodePoint for char

Implementors§