Trait frame_support::traits::FilterStack
source · [−]pub trait FilterStack<T>: Contains<T> {
type Stack;
fn push(constraint: impl Fn(&T) -> bool + 'static);
fn pop();
fn take() -> Self::Stack;
fn restore(taken: Self::Stack);
}
Expand description
Trait to add a constraint onto the filter.
Associated Types
Required methods
Clear the filter, returning a value that may be used later to restore
it.