pub trait GeneratablePartialOrder
where Self: Sized,
{ // Required methods fn next(self) -> Option<Self>; fn prev(self) -> Option<Self>; }
Expand description

Like Cyclic you can generate next and previous items. However, the operation might fail and return None.

Required Methods§

source

fn next(self) -> Option<Self>

Generate the next item.

source

fn prev(self) -> Option<Self>

Generate the previous item.

Object Safety§

This trait is not object safe.

Implementors§