Trait polkadot_sdk_frame::traits::InstanceFilter
pub trait InstanceFilter<T>: Sized + Send + Sync {
// Required method
fn filter(&self, _: &T) -> bool;
// Provided method
fn is_superset(&self, _o: &Self) -> bool { ... }
}
Expand description
Simple trait for providing a filter over a reference to some type, given an instance of itself.
Required Methods§
Provided Methods§
fn is_superset(&self, _o: &Self) -> bool
fn is_superset(&self, _o: &Self) -> bool
Determines whether self
matches at least everything that _o
does.
Object Safety§
This trait is not object safe.