pub enum RangeComparisonValue {
Range(Produced<CanonicalRange>),
Multirange(Produced<CanonicalMultirange>),
DeclaredRange(Produced<CanonicalRange<u32>>),
DeclaredMultirange(Produced<CanonicalMultirange<u32>>),
}Expand description
Admitted range bounds shared by comparison and exact SQL equality-key consumers. Parsing and normalization retain the caller’s reservations until this value is released.
Variants§
Range(Produced<CanonicalRange>)
Multirange(Produced<CanonicalMultirange>)
DeclaredRange(Produced<CanonicalRange<u32>>)
DeclaredMultirange(Produced<CanonicalMultirange<u32>>)
Implementations§
Source§impl RangeComparisonValue
impl RangeComparisonValue
Sourcepub fn declared_physical_oid(
value: &Value,
catalog: Option<&dyn SQLValueCatalog>,
) -> Result<Option<u32>>
pub fn declared_physical_oid( value: &Value, catalog: Option<&dyn SQLValueCatalog>, ) -> Result<Option<u32>>
Declared ranges carry an unambiguous physical SQL identity. Native text carriers still require their selected field type, so ordinary text does not acquire range comparison or key semantics from another operand.
Sourcepub fn from_declared_with_control(
value: &Value,
oid: u32,
catalog: Option<&dyn SQLValueCatalog>,
control: &ProductionControl<'_>,
) -> Result<Option<Self>>
pub fn from_declared_with_control( value: &Value, oid: u32, catalog: Option<&dyn SQLValueCatalog>, control: &ProductionControl<'_>, ) -> Result<Option<Self>>
Resolve an already selected field type through the existing builtin or statement catalog. Text and unrelated SQL types keep their original interpretation.
Sourcepub fn from_type_with_control(
value: &Value,
ty: &ColumnType,
catalog: Option<&dyn SQLValueCatalog>,
control: &ProductionControl<'_>,
) -> Result<Option<Self>>
pub fn from_type_with_control( value: &Value, ty: &ColumnType, catalog: Option<&dyn SQLValueCatalog>, control: &ProductionControl<'_>, ) -> Result<Option<Self>>
Observe an admitted value under an already selected type without resolving its identity again. Unrelated types and SQL NULL retain their ordinary consumer semantics.
Sourcepub fn cmp_with_control(
&self,
other: &Self,
control: &ProductionControl<'_>,
) -> Result<Ordering>
pub fn cmp_with_control( &self, other: &Self, control: &ProductionControl<'_>, ) -> Result<Ordering>
Compare values with the same selected range identity; NULL placement remains with the containing SQL operation.
pub fn cmp_with_catalog_and_control( &self, other: &Self, catalog: Option<&dyn SQLValueCatalog>, control: &ProductionControl<'_>, ) -> Result<Ordering>
Auto Trait Implementations§
impl Freeze for RangeComparisonValue
impl RefUnwindSafe for RangeComparisonValue
impl Send for RangeComparisonValue
impl Sync for RangeComparisonValue
impl Unpin for RangeComparisonValue
impl UnsafeUnpin for RangeComparisonValue
impl UnwindSafe for RangeComparisonValue
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
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> ⓘ
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> ⓘ
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