Skip to main content

TokenStreamPredicate

Trait TokenStreamPredicate 

Source
pub trait TokenStreamPredicate {
    // Required method
    fn matching(&self, p: &mut Parser, top_level: bool) -> bool;

    // Provided method
    fn or<O: TokenStreamPredicate>(self, other: O) -> Or<Self, O>
       where Self: Sized { ... }
}

Required Methods§

Source

fn matching(&self, p: &mut Parser, top_level: bool) -> bool

Provided Methods§

Source

fn or<O: TokenStreamPredicate>(self, other: O) -> Or<Self, O>
where Self: Sized,

AbstractTokenStreamPredicate.or.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl TokenStreamPredicate for At

Source§

impl TokenStreamPredicate for AtSet

Source§

impl<A: TokenStreamPredicate, B: TokenStreamPredicate> TokenStreamPredicate for Or<A, B>

Source§

impl<F: Fn(&mut Parser, bool) -> bool> TokenStreamPredicate for F

Anonymous AbstractTokenStreamPredicate subclasses.