Trait CloneEarlyStoppingStrategy

pub trait CloneEarlyStoppingStrategy: EarlyStoppingStrategy + Send {
    // Required method
    fn clone_box(&self) -> Box<dyn CloneEarlyStoppingStrategy>;
}
Expand description

A helper trait to provide type-erased cloning.

Required Methods§

fn clone_box(&self) -> Box<dyn CloneEarlyStoppingStrategy>

Clone into a boxed trait object.

Trait Implementations§

§

impl Clone for Box<dyn CloneEarlyStoppingStrategy>

Now you can impl Clone for the boxed trait object.

§

fn clone(&self) -> Box<dyn CloneEarlyStoppingStrategy>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

§

impl<T> CloneEarlyStoppingStrategy for T
where T: EarlyStoppingStrategy + Clone + Send + 'static,

Blanket-implement CloneEarlyStoppingStrategy for any T that already implements your strategy + Clone + Send + 'static.