[][src]Enum wasmtime::AnyRef

pub enum AnyRef {
    Null,
    Ref(InternalRef),
    Other(OtherRef),
}

Variants

Null
Ref(InternalRef)
Other(OtherRef)

Methods

impl AnyRef[src]

pub fn new(data: Box<dyn Any>) -> Self[src]

pub fn null() -> Self[src]

pub fn data(&self) -> Ref<Box<dyn Any>>[src]

pub fn ptr_eq(&self, other: &AnyRef) -> bool[src]

pub fn host_info(&self) -> Option<RefMut<Box<dyn HostInfo>>>[src]

pub fn set_host_info(&self, info: Option<Box<dyn HostInfo>>)[src]

Trait Implementations

impl Into<AnyRef> for Val[src]

impl From<AnyRef> for Val[src]

impl Clone for AnyRef[src]

impl Debug for AnyRef[src]

Auto Trait Implementations

impl !Send for AnyRef

impl !Sync for AnyRef

impl Unpin for AnyRef

impl !UnwindSafe for AnyRef

impl !RefUnwindSafe for AnyRef

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self