[][src]Trait boa::object::NativeObject

pub trait NativeObject: Debug + Any + Trace {
    pub fn as_any(&self) -> &dyn Any;
pub fn as_mut_any(&mut self) -> &mut dyn Any; }

This trait allows Rust types to be passed around as objects.

This is automatically implemented, when a type implements Debug, Any and Trace.

Required methods

pub fn as_any(&self) -> &dyn Any[src]

Convert the Rust type which implements NativeObject to a &dyn Any.

pub fn as_mut_any(&mut self) -> &mut dyn Any[src]

Convert the Rust type which implements NativeObject to a &mut dyn Any.

Loading content...

Implementors

impl<T: Any + Debug + Trace> NativeObject for T[src]

Loading content...