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.