Trait py_declare::BranchFilter

source ·
pub trait BranchFilter<T: Types>: WithSpan {
    // Required methods
    fn satisfy(&self, ty: &Type) -> bool;
    fn expect(&self, defs: &Defs) -> String;
}

Required Methods§

source

fn satisfy(&self, ty: &Type) -> bool

source

fn expect(&self, defs: &Defs) -> String

Object Safety§

This trait is not object safe.

Implementors§

source§

impl BranchFilter<Rc<FnSignWithName>> for FnParamLen<'_>

source§

impl<'t> BranchFilter<Rc<FnSignWithName>> for NthParamTyEqual<'t>

source§

impl<T: Types> BranchFilter<T> for TypeEqual<'_>

source§

impl<T: Types, Fs, Fe> BranchFilter<T> for CustomFilter<T, Fs, Fe>
where Fs: Fn(&Type) -> bool, Fe: Fn(&Defs) -> String,