[][src]Enum gluon_vm::api::ValueRef

pub enum ValueRef<'a> {
    Byte(u8),
    Int(VmInt),
    Float(f64),
    String(&'a str),
    Data(Data<'a>),
    Array(ArrayRef<'a>),
    Userdata(&'a dyn Userdata),
    Thread(&'a Thread),
    Closure(Closure<'a>),
    Internal,
}

Variants

Byte(u8)Int(VmInt)Float(f64)String(&'a str)Data(Data<'a>)Array(ArrayRef<'a>)Userdata(&'a dyn Userdata)Thread(&'a Thread)Closure(Closure<'a>)Internal

Methods

impl<'a> ValueRef<'a>[src]

pub fn tag(t: VmTag) -> Self[src]

Trait Implementations

impl<'vm, 'value> Getable<'vm, 'value> for ValueRef<'value>[src]

type Proxy = Variants<'value>

impl<'a, 'b> PartialEq<ValueRef<'b>> for ValueRef<'a>[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl<'a> PartialEq<Value> for ValueRef<'a>[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl<'a> Copy for ValueRef<'a>[src]

impl<'a> Clone for ValueRef<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for ValueRef<'a>[src]

Auto Trait Implementations

impl<'a> Send for ValueRef<'a>

impl<'a> Unpin for ValueRef<'a>

impl<'a> Sync for ValueRef<'a>

impl<'a> !UnwindSafe for ValueRef<'a>

impl<'a> !RefUnwindSafe for ValueRef<'a>

Blanket Implementations

impl<D, T> FromPtr<D> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<T> Any for T where
    T: Any
[src]