Skip to main content

clone_value

Function clone_value 

Source
pub fn clone_value<V: Clone + Send + 'static>(
    value: &(dyn Any + Send),
) -> AnyValue
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).