Trait gluon_vm::vm::Userdata[][src]

pub trait Userdata: Any + Traverseable + Debug + Send + Sync {
    fn deep_clone(
        &self,
        deep_cloner: &mut Cloner
    ) -> Result<GcPtr<Box<Userdata>>> { ... } }

Provided Methods

Methods

impl Userdata

Returns true if the boxed type is the same as T

Returns some reference to the boxed value if it is of type T, or None if it isn't.

Returns a reference to the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

Returns some mutable reference to the boxed value if it is of type T, or None if it isn't.

Returns a mutable reference to the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

impl Userdata

Returns the boxed value if it is of type T, or Err(Self) if it isn't.

Returns the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

Trait Implementations

impl PartialEq for Userdata
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors