pub enum CompiledTimePred {
True,
False,
NonTime,
Unknown,
Cmp {
op: Operator,
ts: DateTime<Utc>,
},
Other,
}Expand description
Simplified, public view of a compiled time predicate for tests.
Variants§
True
Predicate always true.
False
Predicate always false.
NonTime
Predicate does not reference the timestamp column.
Unknown
Predicate references ts but cannot be evaluated for pruning.
Cmp
A direct comparison against a timestamp literal.
Other
Any other form (e.g., And/Or/Not trees).
Trait Implementations§
Source§impl Debug for CompiledTimePred
impl Debug for CompiledTimePred
Source§impl PartialEq for CompiledTimePred
impl PartialEq for CompiledTimePred
impl StructuralPartialEq for CompiledTimePred
Auto Trait Implementations§
impl Freeze for CompiledTimePred
impl RefUnwindSafe for CompiledTimePred
impl Send for CompiledTimePred
impl Sync for CompiledTimePred
impl Unpin for CompiledTimePred
impl UnsafeUnpin for CompiledTimePred
impl UnwindSafe for CompiledTimePred
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> 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