[][src]Trait gluon_vm::api::Userdata

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

Provided methods

Loading content...

Methods

impl dyn 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 dyn 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<dyn Userdata + 'static> for dyn Userdata
[src]

This method tests for !=.

Implementors

impl Userdata for DirEntry
[src]

impl Userdata for Metadata
[src]

impl Userdata for Thread
[src]

impl<T> Userdata for Receiver<T> where
    T: Any + Send + Sync + Debug
[src]

impl<T> Userdata for Sender<T> where
    T: Any + Send + Sync + Debug
[src]

impl<T> Userdata for Lazy<T> where
    T: Any + Send + Sync
[src]

impl<T> Userdata for Reference<T> where
    T: Any + Send + Sync
[src]

Loading content...