[][src]Trait intrusive_splay_tree::WalkControl

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.

Loading content...

Required methods

fn should_break(self) -> Option<Self::Result>

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

Loading content...

Implementations on Foreign Types

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

type Result = T

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

type Result = E

Loading content...

Implementors

impl WalkControl for ()[src]

type Result = ()

Loading content...