Trait RangeSubType

Source
pub unsafe trait RangeSubType:
    Clone
    + FromDatum
    + IntoDatum {
    // Required method
    fn range_type_oid() -> Oid;
}
Expand description

This trait allows a struct to be a valid subtype for a RangeType

Required Methods§

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 RangeSubType for i32

for int/int4range

Source§

impl RangeSubType for i64

for bigint/int8range

Implementors§

Source§

impl RangeSubType for Date

for date/daterange

Source§

impl RangeSubType for Timestamp

for Timestamp/tsrange

Source§

impl RangeSubType for TimestampWithTimeZone

for Timestamp With Time Zone/tstzrange

Source§

impl RangeSubType for AnyNumeric

for numeric/numrange

Source§

impl<const P: u32, const S: u32> RangeSubType for Numeric<P, S>

for numeric/numrange