mz_repr::adt::range

Trait 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

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.

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§