Skip to main content

DataAny

Trait DataAny 

Source
pub trait DataAny:
    Any
    + Send
    + Sync
    + DynClone {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn into_any(self: Box<Self>) -> Box<dyn Any>;
}

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

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

Trait Implementations§

Source§

impl Clone for Box<dyn DataAny>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for dyn DataAny

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> DataAny for T
where T: Any + Send + Sync + DynClone,