[][src]Trait kul_core::parser::CharClassifier

pub trait CharClassifier {
    fn is_nest_start(&self, c: char) -> bool;
fn is_nest_end(&self, c: char) -> bool;
fn is_nest_escape(&self, c: char) -> bool;
fn is_whitespace(&self, c: char) -> bool; }

Classifier of chars that determines which are a Parser's special delimiters.

Enables different applications to use different sets of delimiters. E.g. URI-friendly characters might be used instead.

Do not make more than one of the predicate methods return true for the same char.

Required methods

fn is_nest_start(&self, c: char) -> bool

Predicate that determines the character(s) used to delimit the start of our nesting form.

fn is_nest_end(&self, c: char) -> bool

Predicate that determines the character(s) used to delimit the end of our nesting form.

fn is_nest_escape(&self, c: char) -> bool

Predicate that determines the character(s) used to escape the delimiter characters of our nesting form.

fn is_whitespace(&self, c: char) -> bool

Predicate that determines the character(s) considered to be whitespace, which affects the delimiting of operator and operands in our nesting form.

Loading content...

Implementors

impl CharClassifier for DefaultCharClassifier[src]

Loading content...