UnicodeCharacter

Trait UnicodeCharacter 

Source
pub trait UnicodeCharacter {
    // Required methods
    fn block(&self) -> &'static str;
    fn name(&self) -> &'static str;
    fn scalar_value(&self) -> char;
}
Expand description

This trait ensures that a character exposes its Unicode owning block, name, and scalar value.

Required Methods§

Source

fn block(&self) -> &'static str

Returns the Unicode block of the character.

Source

fn name(&self) -> &'static str

Returns the Unicode name of the character.

Source

fn scalar_value(&self) -> char

Returns the Unicode scalar value of the character, which is equivalent to a Rust char.

Implementors§