pub enum CastPredicatePreimage {
Exact(ScalarValue),
Range(Interval),
}Expand description
Source-domain preimage of CAST(source_expr AS target_type) OP literal.
Variants§
Exact(ScalarValue)
An exact same-operator source bound or literal, i.e. the rewrite is
source_expr OP value with the original comparison operator.
Range(Interval)
A half-open source-domain interval [lower, upper); the caller maps the
comparison operator onto its bounds. Equal bounds mean no single source
value maps to the literal, an empty equality preimage, while ordered
comparisons still compare against that bound as in < bound or
>= bound.
Implementations§
Source§impl CastPredicatePreimage
impl CastPredicatePreimage
Sourcepub fn duplicates_input(&self, op: Operator) -> bool
pub fn duplicates_input(&self, op: Operator) -> bool
Returns whether this preimage and comparison operator produce multiple predicates that each evaluate the input expression.
Trait Implementations§
Source§impl Clone for CastPredicatePreimage
impl Clone for CastPredicatePreimage
Source§impl Debug for CastPredicatePreimage
impl Debug for CastPredicatePreimage
impl Eq for CastPredicatePreimage
Source§impl PartialEq for CastPredicatePreimage
impl PartialEq for CastPredicatePreimage
impl StructuralPartialEq for CastPredicatePreimage
Auto Trait Implementations§
impl !RefUnwindSafe for CastPredicatePreimage
impl !UnwindSafe for CastPredicatePreimage
impl Forget for CastPredicatePreimage
impl Freeze for CastPredicatePreimage
impl Move for CastPredicatePreimage
impl Send for CastPredicatePreimage
impl Sync for CastPredicatePreimage
impl Unpin for CastPredicatePreimage
impl UnsafeUnpin for CastPredicatePreimage
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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