pub struct CanonicalRange { /* private fields */ }Implementations§
Source§impl CanonicalRange
impl CanonicalRange
pub const fn subtype(&self) -> RangeSubtype
pub const fn is_empty(&self) -> bool
pub const fn lower_inclusive(&self) -> bool
pub const fn upper_inclusive(&self) -> bool
pub fn lower(&self) -> Option<&Value>
pub fn upper(&self) -> Option<&Value>
pub fn overlaps(&self, other: &Self) -> bool
pub fn adjacent(&self, other: &Self) -> bool
pub fn contains_range(&self, other: &Self) -> bool
pub fn contains_value(&self, value: &Value) -> bool
Sourcepub fn merge_cover(&self, other: &Self) -> Self
pub fn merge_cover(&self, other: &Self) -> Self
Smallest range containing both operands. Unlike union, PostgreSQL’s
range_merge also spans a gap between disjoint ranges.
pub fn to_text(&self) -> String
Trait Implementations§
Source§impl Clone for CanonicalRange
impl Clone for CanonicalRange
Source§fn clone(&self) -> CanonicalRange
fn clone(&self) -> CanonicalRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanonicalRange
impl Debug for CanonicalRange
impl Eq for CanonicalRange
Source§impl PartialEq for CanonicalRange
impl PartialEq for CanonicalRange
impl StructuralPartialEq for CanonicalRange
Auto Trait Implementations§
impl Freeze for CanonicalRange
impl RefUnwindSafe for CanonicalRange
impl Send for CanonicalRange
impl Sync for CanonicalRange
impl Unpin for CanonicalRange
impl UnsafeUnpin for CanonicalRange
impl UnwindSafe for CanonicalRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more