[][src]Struct gluon_vm::Variants

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

Implementations

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

pub 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<'_> Clone for Variants<'_>[src]

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

impl<'gc> From<&'gc GcPtr<Box<dyn Userdata + 'static>>> for Variants<'gc>[src]

impl<'gc> From<&'gc GcPtr<ClosureData>> for Variants<'gc>[src]

impl<'gc> From<&'gc GcPtr<DataStruct>> for Variants<'gc>[src]

impl<'gc> From<&'gc GcPtr<ExternFunction>> for Variants<'gc>[src]

impl<'gc> From<&'gc GcPtr<PartialApplicationData>> for Variants<'gc>[src]

impl<'gc> From<&'gc GcPtr<Thread>> for Variants<'gc>[src]

impl<'gc> From<&'gc GcPtr<ValueArray>> for Variants<'gc>[src]

impl<'gc> From<&'gc GcPtr<ValueStr>> for Variants<'gc>[src]

impl<'gc> From<Borrow<'gc, GcPtr<Box<dyn Userdata + 'static>>>> for Variants<'gc>[src]

impl<'gc> From<Borrow<'gc, GcPtr<ClosureData>>> for Variants<'gc>[src]

impl<'gc> From<Borrow<'gc, GcPtr<DataStruct>>> for Variants<'gc>[src]

impl<'gc> From<Borrow<'gc, GcPtr<ExternFunction>>> for Variants<'gc>[src]

impl<'gc> From<Borrow<'gc, GcPtr<PartialApplicationData>>> for Variants<'gc>[src]

impl<'gc> From<Borrow<'gc, GcPtr<Thread>>> for Variants<'gc>[src]

impl<'gc> From<Borrow<'gc, GcPtr<ValueArray>>> for Variants<'gc>[src]

impl<'gc> From<Borrow<'gc, GcPtr<ValueStr>>> for Variants<'gc>[src]

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

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

impl<'a> SerializeState<SeSeed> for Variants<'a>[src]

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

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

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for Variants<'a>

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

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<Id> AsId<Id> for Id where
    Id: ?Sized
[src]

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

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

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

impl<'_, T> Captures<'_> for T[src]

impl<T> CloneAny for T where
    T: Clone + Any

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

type Remainder = Choices

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

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

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

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

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

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

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

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

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

type Remainder = Source

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.