[][src]Trait frame_support::traits::InstanceFilter

pub trait InstanceFilter<T>: Sized + Send + Sync {
    fn filter(&self, _: &T) -> bool;

    fn is_superset(&self, _o: &Self) -> bool { ... }
}

Simple trait for providing a filter over a reference to some type, given an instance of itself.

Required methods

fn filter(&self, _: &T) -> bool

Determine if a given value should be allowed through the filter (returns true) or not.

Loading content...

Provided methods

fn is_superset(&self, _o: &Self) -> bool

Determines whether self matches at least everything that _o does.

Loading content...

Implementations on Foreign Types

impl<T> InstanceFilter<T> for ()[src]

Loading content...

Implementors

Loading content...