CharMatchExt

Trait CharMatchExt 

Source
pub trait CharMatchExt: Seal + Copy {
    // Required methods
    fn is(self, charset: Charset) -> bool;
    fn is_inkl_non_ascii(self, charset: Charset) -> bool;
}

Required Methods§

Source

fn is(self, charset: Charset) -> bool

Returns true if the char is a char belonging to the given charset.

Source

fn is_inkl_non_ascii(self, charset: Charset) -> bool

Returns true if the char is a char belonging to the given charset or a non-us-ascii char.

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 CharMatchExt for char

Source§

fn is(self, charset: Charset) -> bool

Source§

fn is_inkl_non_ascii(self, charset: Charset) -> bool

Implementors§