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

The result type that is returned when we break.

Required Methods

If iteration should halt, return Some. If iteration should continue, return None.

Implementations on Foreign Types

impl<T> WalkControl for Option<T>
[src]

[src]

impl<E> WalkControl for Result<(), E>
[src]

[src]

Implementors