Trait rec::Atom

source ·
pub trait Atom {
    fn to_regexp(&self) -> String;

    fn to_rec(&self) -> Rec { ... }
    fn rpt(&self, quantifier: impl Quantifier) -> Rec { ... }
}
Expand description

Specifies the characters to be matched against.

Required Methods§

Converts self to its appropriate Regexp.

Provided Methods§

Converts self to a Rec.

Generates a Rec consisting of self quantified by quantifier.

Implementations on Foreign Types§

Implementors§