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>
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.
impl Clone for Box<dyn CloneEarlyStoppingStrategy>
Now you can impl Clone for the boxed trait object.
§fn clone(&self) -> Box<dyn CloneEarlyStoppingStrategy>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreImplementors§
impl<T> CloneEarlyStoppingStrategy for T
Blanket-implement CloneEarlyStoppingStrategy for any T that
already implements your strategy + Clone + Send + 'static.