pub trait RangeOps<'a>: Debug + Ord + PartialOrd + Eq + PartialEq + TryFrom<Datum<'a>> + Into<Datum<'a>>where
<Self as TryFrom<Datum<'a>>>::Error: Debug,{
fn err_type_name() -> &'static str;
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.