pub enum KeyOrder {
Strict,
Reorder,
Clamp,
}Expand description
What TimeSeries::from_json does when a row’s key sorts before the
row above it, as pond-ts fromJSON({ ordering }).
Variants§
Strict
Refuse it (pond-ts 'strict', the default).
Reorder
Sort the rows by key (start, then end), keeping the order of rows
with the same key (pond-ts 'reorder').
Clamp
Keep the rows where they are and move a backwards time up to the
time above it (pond-ts 'clamp'). Point-in-time keys only: a time
range or interval is refused, even when it is in order.
Trait Implementations§
impl Copy for KeyOrder
impl Eq for KeyOrder
impl StructuralPartialEq for KeyOrder
Auto Trait Implementations§
impl Freeze for KeyOrder
impl RefUnwindSafe for KeyOrder
impl Send for KeyOrder
impl Sync for KeyOrder
impl Unpin for KeyOrder
impl UnsafeUnpin for KeyOrder
impl UnwindSafe for KeyOrder
Blanket Implementations§
impl<T> Allocation for T
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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