Trait Match

Source
pub trait Match: Debug {
    type PatternID: PatternIdentifier;

    // Required methods
    fn is_empty(&self) -> bool;
    fn pattern(&self) -> Self::PatternID;
    fn end(&self) -> usize;
    fn range(&self) -> Range<usize>;
}

Required Associated Types§

Required Methods§

Source

fn is_empty(&self) -> bool

Source

fn pattern(&self) -> Self::PatternID

Source

fn end(&self) -> usize

Source

fn range(&self) -> Range<usize>

Implementations on Foreign Types§

Source§

impl Match for Match

Source§

impl Match for Match

Implementors§