Trait Records

Source
pub trait Records {
    type Inputs;
    type Targets;

    // Required methods
    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;

    // Provided methods
    fn set_inputs(&mut self, inputs: Self::Inputs) { ... }
    fn set_targets(&mut self, targets: Self::Targets) { ... }
}
Expand description

This trait generically defines the basic type of dataset that can be used throughout the framework.

Required Associated Types§

Required Methods§

Source

fn inputs(&self) -> &Self::Inputs

Source

fn inputs_mut(&mut self) -> &mut Self::Inputs

Source

fn targets(&self) -> &Self::Targets

Source

fn targets_mut(&mut self) -> &mut Self::Targets

Provided Methods§

Source

fn set_inputs(&mut self, inputs: Self::Inputs)

Source

fn set_targets(&mut self, targets: Self::Targets)

Implementors§

Source§

impl<U, V> Records for DatasetBase<U, V>