Struct IndexRange
pub struct IndexRange { /* private fields */ }Expand description
A half-open range start..end of index values in the physical i64 space of the index
column: Datetime in its own time unit, Date as microseconds, integers as themselves.
(i64::MIN, None) stands for an unbounded range.
Implementations§
§impl IndexRange
impl IndexRange
pub const ALL: IndexRange
pub const fn new(start: i64, end: Option<i64>) -> IndexRange
pub const fn new(start: i64, end: Option<i64>) -> IndexRange
The range start..end.
pub fn start(&self) -> i64
pub fn end(&self) -> Option<i64>
pub fn contains(&self, t: i64) -> bool
pub fn is_before(&self, t: i64) -> bool
pub fn is_before(&self, t: i64) -> bool
Whether t, and so every earlier value of an ascending index, lies before the range.
Trait Implementations§
§impl Clone for IndexRange
impl Clone for IndexRange
§fn clone(&self) -> IndexRange
fn clone(&self) -> IndexRange
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 IndexRange
§impl Debug for IndexRange
impl Debug for IndexRange
§impl<'de> Deserialize<'de> for IndexRange
impl<'de> Deserialize<'de> for IndexRange
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexRange
§impl Hash for IndexRange
impl Hash for IndexRange
§impl PartialEq for IndexRange
impl PartialEq for IndexRange
§impl Serialize for IndexRange
impl Serialize for IndexRange
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IndexRange
Auto Trait Implementations§
impl Freeze for IndexRange
impl RefUnwindSafe for IndexRange
impl Send for IndexRange
impl Sync for IndexRange
impl Unpin for IndexRange
impl UnsafeUnpin for IndexRange
impl UnwindSafe for IndexRange
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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