pub enum PrimaryRange {
Timestamp {
start: i64,
end: i64,
},
Date32 {
start: i32,
end: i32,
},
}Expand description
A typed half-open range over the schema’s primary column.
The two variants are separate types rather than one integer range because
the endpoints mean different things: a timestamp endpoint is a raw value in
the column’s stored unit, and a date32 endpoint is a signed day number.
A range is only accepted against a primary column of the matching kind.
Variants§
Timestamp
A range over a timestamp64 primary column, in its stored unit.
Date32
A range over a date32 primary column, in signed days.
Implementations§
Trait Implementations§
Source§impl Clone for PrimaryRange
impl Clone for PrimaryRange
Source§fn clone(&self) -> PrimaryRange
fn clone(&self) -> PrimaryRange
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 moreimpl Copy for PrimaryRange
Source§impl Debug for PrimaryRange
impl Debug for PrimaryRange
impl Eq for PrimaryRange
Source§impl PartialEq for PrimaryRange
impl PartialEq for PrimaryRange
impl StructuralPartialEq for PrimaryRange
Auto Trait Implementations§
impl Freeze for PrimaryRange
impl RefUnwindSafe for PrimaryRange
impl Send for PrimaryRange
impl Sync for PrimaryRange
impl Unpin for PrimaryRange
impl UnsafeUnpin for PrimaryRange
impl UnwindSafe for PrimaryRange
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