Trait FilterStack
pub trait FilterStack<T>: Contains<T> {
type Stack;
// Required methods
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.
Required Associated Types§
type Stack
type Stack
The type used to archive the stack.
Required Methods§
fn pop()
fn pop()
Removes the most recently pushed, and not-yet-popped, constraint from the filter.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.