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§
Required Methods§
Sourcefn should_break(self) -> Option<Self::Result>
fn should_break(self) -> Option<Self::Result>
If iteration should halt, return Some
. If iteration should continue,
return None
.