pub enum DataVariant<X: AxisKindMarker, Y: AxisKindMarker> {
Data(Vec<ValueSerializeWrapper<X>>),
Pair(Vec<(ValueSerializeWrapper<X>, ValueSerializeWrapper<Y>)>),
Named(Vec<NamedValue<X>>),
NamedPair(Vec<NamedValuePair<X, Y>>),
}
Variants§
Data(Vec<ValueSerializeWrapper<X>>)
Single dimension data (string/int/float)
Pair(Vec<(ValueSerializeWrapper<X>, ValueSerializeWrapper<Y>)>)
Two-dimensional data: [x, y]
Named(Vec<NamedValue<X>>)
Single dimension data as an object with a name field
NamedPair(Vec<NamedValuePair<X, Y>>)
Two-dimensional data with the name: { value: [x, y], name: “str” }
Trait Implementations§
Source§impl<X: Clone + AxisKindMarker, Y: Clone + AxisKindMarker> Clone for DataVariant<X, Y>
impl<X: Clone + AxisKindMarker, Y: Clone + AxisKindMarker> Clone for DataVariant<X, Y>
Source§fn clone(&self) -> DataVariant<X, Y>
fn clone(&self) -> DataVariant<X, Y>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<X: Debug + AxisKindMarker, Y: Debug + AxisKindMarker> Debug for DataVariant<X, Y>
impl<X: Debug + AxisKindMarker, Y: Debug + AxisKindMarker> Debug for DataVariant<X, Y>
Source§impl<X, Y> Serialize for DataVariant<X, Y>
impl<X, Y> Serialize for DataVariant<X, Y>
Auto Trait Implementations§
impl<X, Y> Freeze for DataVariant<X, Y>
impl<X, Y> RefUnwindSafe for DataVariant<X, Y>where
X: RefUnwindSafe,
Y: RefUnwindSafe,
impl<X, Y> Send for DataVariant<X, Y>
impl<X, Y> Sync for DataVariant<X, Y>
impl<X, Y> Unpin for DataVariant<X, Y>
impl<X, Y> UnwindSafe for DataVariant<X, Y>where
X: UnwindSafe,
Y: UnwindSafe,
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