Trait intrusive_splay_tree::WalkControl
[−]
[src]
pub trait WalkControl { type Result; fn should_break(self) -> Option<Self::Result>; }
A trait that guides whether SplayTree::walk
should continue or break, and
what the return value is.
Associated Types
type Result
The result type that is returned when we break.
Required Methods
fn should_break(self) -> Option<Self::Result>
If iteration should halt, return Some
. If iteration should continue,
return None
.
Implementations on Foreign Types
impl<T> WalkControl for Option<T>
[src]
type Result = T
fn should_break(self) -> Option<T>
[src]
impl<E> WalkControl for Result<(), E>
[src]
type Result = E
fn should_break(self) -> Option<E>
[src]
Implementors
impl WalkControl for () type Result = ();