pub trait IdOperations: Copy {
// Required methods
fn empty_range() -> IdRange<Self>;
fn forward(self) -> Option<Self>;
fn back(self) -> Option<Self>;
fn cmp(self, other: Self) -> Ordering;
fn distance(lhs: Self, rhs: Self) -> usize;
}
Required Methods§
fn empty_range() -> IdRange<Self>
fn forward(self) -> Option<Self>
fn back(self) -> Option<Self>
fn cmp(self, other: Self) -> Ordering
fn distance(lhs: Self, rhs: Self) -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.