[][src]Trait frame_support::traits::FilterStack

pub trait FilterStack<T>: Filter<T> {
    type Stack;
    pub fn push(constraint: impl Fn(&T) -> bool + 'static);
pub fn pop();
pub fn take() -> Self::Stack;
pub fn restore(taken: Self::Stack); }

Trait to add a constraint onto the filter.

Associated Types

type Stack[src]

The type used to archive the stack.

Loading content...

Required methods

pub fn push(constraint: impl Fn(&T) -> bool + 'static)[src]

Add a new constraint onto the filter.

pub fn pop()[src]

Removes the most recently pushed, and not-yet-popped, constraint from the filter.

pub fn take() -> Self::Stack[src]

Clear the filter, returning a value that may be used later to restore it.

pub fn restore(taken: Self::Stack)[src]

Restore the filter from a previous take operation.

Loading content...

Implementors

Loading content...