http::extensions

Trait AnyClone

Source
trait AnyClone: Any {
    // Required methods
    fn clone_box(&self) -> Box<dyn AnyClone + Send + Sync>;
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
    fn into_any(self: Box<Self>) -> Box<dyn Any>;
}

Required Methods§

Source

fn clone_box(&self) -> Box<dyn AnyClone + Send + Sync>

Source

fn as_any(&self) -> &dyn Any

Source

fn as_any_mut(&mut self) -> &mut dyn Any

Source

fn into_any(self: Box<Self>) -> Box<dyn Any>

Trait Implementations§

Source§

impl Clone for Box<dyn AnyClone + Send + Sync>

Source§

fn clone(&self) -> Self

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

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

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<T: Clone + Send + Sync + 'static> AnyClone for T