[][src]Trait rustpub::simple::core::ObjectTrait

pub trait ObjectTrait: Debug + Serialize + Deserialize {
    fn any_ref(&self) -> &dyn Any;
fn box_clone(&self) -> Box<dyn ObjectTrait>; }

Required methods

fn any_ref(&self) -> &dyn Any

fn box_clone(&self) -> Box<dyn ObjectTrait>

Loading content...

Methods

impl dyn ObjectTrait[src]

pub fn downcast_ref<T: Any>(&self) -> Option<&T>[src]

pub fn as_object(&self) -> Option<&Object>[src]

Trait Implementations

impl<'typetag> Serialize for dyn ObjectTrait + 'typetag[src]

impl<'typetag> Serialize for dyn ObjectTrait + Send + 'typetag[src]

impl<'typetag> Serialize for dyn ObjectTrait + Sync + 'typetag[src]

impl<'typetag> Serialize for dyn ObjectTrait + Send + Sync + 'typetag[src]

impl Strictest for dyn ObjectTrait[src]

type Object = dyn ObjectTrait

Implementors

impl ObjectTrait for Object[src]

Loading content...