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§
fn range_type_oid() -> Oid
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
impl RangeSubType for i32
for int/int4range
fn range_type_oid() -> Oid
Source§impl RangeSubType for i64
for bigint/int8range
impl RangeSubType for i64
for bigint/int8range
fn range_type_oid() -> Oid
Implementors§
impl RangeSubType for Date
for date/daterange
impl RangeSubType for Timestamp
for Timestamp/tsrange
impl RangeSubType for TimestampWithTimeZone
for Timestamp With Time Zone/tstzrange
impl RangeSubType for AnyNumeric
for numeric/numrange
impl<const P: u32, const S: u32> RangeSubType for Numeric<P, S>
for numeric/numrange