blob: 2693230a07cd671a94a5cbdf9ae0e18c361e2a21 (
plain)
1
2
3
4
5
6
7
8
9
|
pub trait Navigable<Option> {
fn move_next(&mut self) -> NavigationResult<Option>;
fn move_prev(&mut self) -> NavigationResult<Option>;
}
pub enum NavigationResult<Option> {
Moved(Option),
LastOption,
}
|