pub trait RangeOps<'a>:
Debug
+ Ord
+ PartialOrd
+ Eq
+ PartialEq
+ TryFrom<Datum<'a>>
+ Into<Datum<'a>>{
// Required method
fn err_type_name() -> &'static str;
// Provided methods
fn step(self) -> Option<Self> { ... }
fn unwrap_datum(d: Datum<'a>) -> Self { ... }
}
Expand description
Trait alias for traits required for generic range function implementations.
Required Methods§
fn err_type_name() -> &'static str
Provided Methods§
sourcefn step(self) -> Option<Self>
fn step(self) -> Option<Self>
Increment self
one step forward, if applicable. Return None
if
overflows.
fn unwrap_datum(d: Datum<'a>) -> Self
Object Safety§
This trait is not object safe.