Trait WalkControl

Source
pub trait WalkControl {
    type Result;

    // Required method
    fn should_break(self) -> Option<Self::Result>;
}
Expand description

A trait that guides whether SplayTree::walk should continue or break, and what the return value is.

Required Associated Types§

Source

type Result

The result type that is returned when we break.

Required Methods§

Source

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

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

Implementations on Foreign Types§

Source§

impl WalkControl for ()

Source§

impl<E> WalkControl for Result<(), E>

Source§

impl<T> WalkControl for Option<T>

Implementors§