pub enum DatasetComponent<X, Y> {
Source(Source<X, Y>),
LabelledSource(LabelledSource<X, Y>),
Transform(Vec<Transform>),
}Expand description
Dataset component for providing and transforming data
Variants§
Implementations§
Source§impl<X, Y> DatasetComponent<X, Y>
impl<X, Y> DatasetComponent<X, Y>
pub fn tr(transform: DatasetTransform, index: usize) -> Self
pub fn trs(transform: Vec<DatasetTransform>, index: usize) -> Self
pub fn src(source: Vec<(X, Y)>) -> Self
Sourcepub fn labelled_source(source: Vec<(X, Y, String)>) -> Self
pub fn labelled_source(source: Vec<(X, Y, String)>) -> Self
Constructor for the labeled source. Always put the label last
Trait Implementations§
Source§impl<X: Clone, Y: Clone> Clone for DatasetComponent<X, Y>
impl<X: Clone, Y: Clone> Clone for DatasetComponent<X, Y>
Source§fn clone(&self) -> DatasetComponent<X, Y>
fn clone(&self) -> DatasetComponent<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<'de, X, Y> Deserialize<'de> for DatasetComponent<X, Y>where
X: Deserialize<'de>,
Y: Deserialize<'de>,
impl<'de, X, Y> Deserialize<'de> for DatasetComponent<X, Y>where
X: Deserialize<'de>,
Y: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<X, Y> Into<DatasetComponent<X, Y>> for Vec<(X, Y)>
impl<X, Y> Into<DatasetComponent<X, Y>> for Vec<(X, Y)>
Source§fn into(self) -> DatasetComponent<X, Y>
fn into(self) -> DatasetComponent<X, Y>
Converts this type into the (usually inferred) input type.
Source§impl<X, Y> Into<DatasetComponent<X, Y>> for Vec<(X, Y, String)>
impl<X, Y> Into<DatasetComponent<X, Y>> for Vec<(X, Y, String)>
Source§fn into(self) -> DatasetComponent<X, Y>
fn into(self) -> DatasetComponent<X, Y>
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<X, Y> Freeze for DatasetComponent<X, Y>
impl<X, Y> RefUnwindSafe for DatasetComponent<X, Y>where
X: RefUnwindSafe,
Y: RefUnwindSafe,
impl<X, Y> Send for DatasetComponent<X, Y>
impl<X, Y> Sync for DatasetComponent<X, Y>
impl<X, Y> Unpin for DatasetComponent<X, Y>
impl<X, Y> UnwindSafe for DatasetComponent<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