Skip to main content

FormatChar

Trait FormatChar 

Source
pub trait FormatChar:
    Copy
    + Into<CodePoint>
    + From<u8> {
    // Required methods
    fn to_char_lossy(self) -> char;
    fn eq_char(self, c: char) -> bool;
}

Required Methods§

Source

fn to_char_lossy(self) -> char

Source

fn eq_char(self, c: char) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FormatChar for char

Source§

impl FormatChar for u8

Source§

impl FormatChar for CodePoint

Implementors§