[][src]Struct gluon_vm::Variants

#[repr(transparent)]
pub struct Variants<'a>(_, _);

Methods

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

pub unsafe fn new(value: &Value) -> Variants[src]

Creates a new Variants value which assumes that value is rooted for the lifetime of the value

pub fn get_value(&self) -> Value[src]

pub fn as_ref(&self) -> ValueRef<'a>[src]

Returns an instance of ValueRef which allows users to safely retrieve the interals of a value

Trait Implementations

impl<'vm> Pushable<'vm> for Variants<'vm>[src]

fn status_push(self, context: &mut ActiveThread<'vm>) -> Status where
    Self: Sized
[src]

unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
    Self: Sized
[src]

fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
    Self: Sized,
    T: VmRoot<'vm>, 
[src]

impl<'a> Traverseable for Variants<'a>[src]

impl<'a> StackPrimitive for Variants<'a>[src]

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

impl<'a> PartialEq<Variants<'a>> for Variants<'a>[src]

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

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

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

impl<'a> Send for Variants<'a>

impl<'a> Sync for Variants<'a>

Blanket Implementations

impl<'vm, T> AsyncPushable for T where
    T: Pushable<'vm>, 
[src]

fn async_status_push(
    self,
    context: &mut ActiveThread<'vm>,
    frame_index: VmIndex
) -> Status where
    Self: Sized
[src]

impl<'vm, T> Pushable for T where
    T: Userdata
[src]

fn status_push(self, context: &mut ActiveThread<'vm>) -> Status where
    Self: Sized
[src]

unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
    Self: Sized
[src]

fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
    Self: Sized,
    T: VmRoot<'vm>, 
[src]

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

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<Choices> CoproductSubsetter for Choices[src]

type Remainder = Choices

impl<Source> Sculptor for Source[src]

type Remainder = Source

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

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