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§
Sourcefn scalar_value(&self) -> char
fn scalar_value(&self) -> char
Returns the Unicode scalar value of the character, which is equivalent to a Rust char.