pub enum Labels {
Number(Vec<f64>),
String(StringColumn),
}Expand description
Interval labels: numbers or text, one kind for the whole key, as in
pond-ts. Every row has a label (no gaps). Build them with .into() from
Vec<f64>, Vec<i64>, Vec<&str> or Vec<String>.
Variants§
Number(Vec<f64>)
Number labels. aggregate labels each bucket with its start, in
epoch milliseconds. Must be finite.
String(StringColumn)
Text labels.
Implementations§
Trait Implementations§
Source§impl From<StringColumn> for Labels
impl From<StringColumn> for Labels
Source§fn from(c: StringColumn) -> Self
fn from(c: StringColumn) -> Self
Converts to this type from the input type.
Source§impl From<Vec<i64>> for Labels
Exact for whole numbers up to 2^53 (every key time is): larger values
round to the nearest f64.
impl From<Vec<i64>> for Labels
Exact for whole numbers up to 2^53 (every key time is): larger values
round to the nearest f64.
impl StructuralPartialEq for Labels
Auto Trait Implementations§
impl !RefUnwindSafe for Labels
impl !UnwindSafe for Labels
impl Freeze for Labels
impl Send for Labels
impl Sync for Labels
impl Unpin for Labels
impl UnsafeUnpin for Labels
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> 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