Skip to main content

clone_value

Function clone_value 

pub fn clone_value<V>(value: &(dyn Any + Send + 'static)) -> Box<dyn Any + Send>
where V: Clone + Send + 'static,
Expand description

Copies an erased value of type V: the CloneFn of a point whose value is V. Panics when the value is another type (a defect of the implementation).