Pattern

Trait Pattern 

Source
pub trait Pattern {
    // Required method
    fn matches(&self, char: char) -> bool;
}
Expand description

A pattern that matches a character.

Required Methods§

Source

fn matches(&self, char: char) -> bool

Check if a character matches the pattern.

Implementors§