Trait mz_repr::adt::range::RangeOps

source ·
pub trait RangeOps<'a>:
    Debug
    + Ord
    + PartialOrd
    + Eq
    + PartialEq
    + TryFrom<Datum<'a>>
    + Into<Datum<'a>>
where <Self as TryFrom<Datum<'a>>>::Error: Debug,
{ // 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§

source

fn err_type_name() -> &'static str

Provided Methods§

source

fn step(self) -> Option<Self>

Increment self one step forward, if applicable. Return None if overflows.

source

fn unwrap_datum(d: Datum<'a>) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> RangeOps<'a> for i32

source§

fn step(self) -> Option<i32>

source§

fn err_type_name() -> &'static str

source§

impl<'a> RangeOps<'a> for i64

source§

fn step(self) -> Option<i64>

source§

fn err_type_name() -> &'static str

source§

impl<'a> RangeOps<'a> for OrderedDecimal<Numeric>

source§

fn err_type_name() -> &'static str

Implementors§