Skip to main content

Match

Trait Match 

Source
pub trait Match<Value = ConValue> {
    // Required method
    fn matches<'env>(
        &self,
        value: Value,
        in_env: &mut MatchEnv<'env>,
    ) -> IResult<()>;
}

Required Methods§

Source

fn matches<'env>( &self, value: Value, in_env: &mut MatchEnv<'env>, ) -> IResult<()>

Implementations on Foreign Types§

Source§

impl Match for (PatOp, &[Pat])

Source§

fn matches<'env>( &self, value: ConValue, in_env: &mut MatchEnv<'env>, ) -> IResult<()>

Source§

impl Match for Pat

Source§

fn matches<'env>( &self, value: ConValue, in_env: &mut MatchEnv<'env>, ) -> IResult<()>

Source§

impl Match<Box<[ConValue]>> for (SliceMode, &[Pat])

Source§

fn matches<'env>( &self, values: Box<[ConValue]>, in_env: &mut MatchEnv<'env>, ) -> IResult<()>

Implementors§