Struct pidgin::Matcher[][src]

pub struct Matcher {
    pub rx: Regex,
    // some fields omitted
}

This is functionally equivalent to a Regex: you can use it repeatedly to search a string. It cannot itself be used directly to split strings, but its regular expression is public and may be so used. It improves on regular expressions in that the Match object it returns is the root node in a parse tree, so its matches preserve parse structure.

Fields

The Regex used for parsing.

Methods

impl Matcher
[src]

Returns Some(Match) if the grammar can parse the string. Note that unless the grammar is string-bounded, this only means it can parse the string at some point.

Returns whether the grammar can parse the string. This is a cheaper operation than parsing.

Trait Implementations

impl Debug for Matcher
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Matcher

impl Sync for Matcher