Trait abstutil::clone::CloneableAny
source · [−]pub trait CloneableAny: CloneableImpl { }
Expand description
Trick to make a cloneable Any from https://stackoverflow.com/questions/30353462/how-to-clone-a-struct-storing-a-boxed-trait-object/30353928#30353928.
Trait Implementations
sourceimpl Clone for Box<dyn CloneableAny>
impl Clone for Box<dyn CloneableAny>
sourcefn clone(&self) -> Box<dyn CloneableAny>
fn clone(&self) -> Box<dyn CloneableAny>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more