pub struct Dataset<U, V> {
pub records: U,
pub targets: V,
}
Fields§
§records: U
§targets: V
Implementations§
Source§impl<U, V> Dataset<U, V>
impl<U, V> Dataset<U, V>
pub fn new(records: U, targets: V) -> Self
pub const fn records(&self) -> &U
pub fn records_mut(&mut self) -> &mut U
pub fn set_records(&mut self, records: U)
pub fn with_records(self, records: U) -> Self
pub const fn targets(&self) -> &V
pub fn targets_mut(&mut self) -> &mut V
pub fn set_targets(&mut self, targets: V)
pub fn with_targets(self, targets: V) -> Self
Trait Implementations§
Source§impl<'de, U, V> Deserialize<'de> for Dataset<U, V>where
U: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, U, V> Deserialize<'de> for Dataset<U, V>where
U: Deserialize<'de>,
V: 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<U: Ord, V: Ord> Ord for Dataset<U, V>
impl<U: Ord, V: Ord> Ord for Dataset<U, V>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<U: PartialOrd, V: PartialOrd> PartialOrd for Dataset<U, V>
impl<U: PartialOrd, V: PartialOrd> PartialOrd for Dataset<U, V>
Source§impl<U, V> Records for Dataset<U, V>
impl<U, V> Records for Dataset<U, V>
type Inputs = U
type Targets = V
fn inputs(&self) -> &Self::Inputs
fn inputs_mut(&mut self) -> &mut Self::Inputs
fn targets(&self) -> &Self::Targets
fn targets_mut(&mut self) -> &mut Self::Targets
fn set_inputs(&mut self, inputs: Self::Inputs)
fn set_targets(&mut self, targets: Self::Targets)
impl<U: Copy, V: Copy> Copy for Dataset<U, V>
impl<U: Eq, V: Eq> Eq for Dataset<U, V>
impl<U, V> StructuralPartialEq for Dataset<U, V>
Auto Trait Implementations§
impl<U, V> Freeze for Dataset<U, V>
impl<U, V> RefUnwindSafe for Dataset<U, V>where
U: RefUnwindSafe,
V: RefUnwindSafe,
impl<U, V> Send for Dataset<U, V>
impl<U, V> Sync for Dataset<U, V>
impl<U, V> Unpin for Dataset<U, V>
impl<U, V> UnwindSafe for Dataset<U, V>where
U: UnwindSafe,
V: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<K, S> Id<K> for Swhere
S: Borrow<K>,
K: Identifier,
impl<K, S> Id<K> for Swhere
S: Borrow<K>,
K: Identifier,
Source§impl<U, V, A> IntoDataset<U, V> for A
impl<U, V, A> IntoDataset<U, V> for A
fn into_dataset(self) -> Dataset<U, V>
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