pub trait Block: Send + Sync {
// Required method
fn apply(&self, s: &mut Frame, rng: &mut Rng) -> Result<()>;
// Provided methods
fn needs_training(&self) -> bool { ... }
fn train(&mut self, _s: &Frame, _rng: &mut Rng) -> Result<()> { ... }
}Expand description
A block of a link.
Required Methods§
Provided Methods§
Sourcefn needs_training(&self) -> bool
fn needs_training(&self) -> bool
Whether the block is trained once per condition before the trials.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".