Trait exprz::shape::Matcher[][src]

pub trait Matcher<E> where
    E: Expression
{ type Error; fn matches_atom(atom: &E::Atom) -> Result<(), Self::Error>;
fn matches_group(group: GroupRef<'_, E>) -> Result<(), Self::Error>; fn matches(expr: &E) -> Result<(), Self::Error> { ... } }
This is supported on crate feature shape only.

Matcher Trait

Associated Types

type Error[src]

Match Error Type

Loading content...

Required methods

fn matches_atom(atom: &E::Atom) -> Result<(), Self::Error>[src]

Checks if the given atom matches the shape.

fn matches_group(group: GroupRef<'_, E>) -> Result<(), Self::Error>[src]

Checks if the given group matches the shape.

Loading content...

Provided methods

fn matches(expr: &E) -> Result<(), Self::Error>[src]

Checks if the given expression matches the shape.

Loading content...

Implementors

Loading content...