pub trait Normalizable: Sized {
// Required method
fn normalize<S>(bound: RangeBound<S, Self>) -> RangeBound<S, Self>
where S: BoundSided;
}
Expand description
A trait that normalizes a range bound for a type
Required Methods§
Sourcefn normalize<S>(bound: RangeBound<S, Self>) -> RangeBound<S, Self>where
S: BoundSided,
fn normalize<S>(bound: RangeBound<S, Self>) -> RangeBound<S, Self>where
S: BoundSided,
Given a range bound, returns the normalized version of that bound. For discrete types such as i32, the normalized lower bound is always inclusive and the normalized upper bound is always exclusive. Other types, such as Timespec, have no normalization process so their implementation is a no-op.
The logic here should match the logic performed by the equivalent Postgres type.
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.