[][src]Trait graviton_backend::vm::object::StackVmObject

pub trait StackVmObject: StackVmObjectClone + Debug + Display + Downcast + Serialize + Deserialize {
    fn add(&self, r: Value) -> Result<Value, String>;
}
Deprecated since 0.5.0:

Please use native backend

Required methods

fn add(&self, r: Value) -> Result<Value, String>

Deprecated since 0.5.0:

Please use native backend

Loading content...

Methods

impl dyn StackVmObject

pub fn is<__T: StackVmObject>(&self) -> bool

Deprecated since 0.5.0:

Please use native backend

Returns true if the trait object wraps an object of type __T.

pub fn downcast<__T: StackVmObject>(
    self: Box<Self>
) -> Result<Box<__T>, Box<Self>>

Deprecated since 0.5.0:

Please use native backend

Returns a boxed object from a boxed trait object if the underlying object is of type __T. Returns the original boxed trait if it isn't.

pub fn downcast_ref<__T: StackVmObject>(&self) -> Option<&__T>

Deprecated since 0.5.0:

Please use native backend

Returns a reference to the object within the trait object if it is of type __T, or None if it isn't.

pub fn downcast_mut<__T: StackVmObject>(&mut self) -> Option<&mut __T>

Deprecated since 0.5.0:

Please use native backend

Returns a mutable reference to the object within the trait object if it is of type __T, or None if it isn't.

Trait Implementations

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

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

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

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

impl Strictest for dyn StackVmObject[src]

Implementations on Foreign Types

impl StackVmObject for String[src]

Loading content...

Implementors

Loading content...