[−][src]Struct gluon_vm::Variants
Methods
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(v: &'gc GcPtr<ClosureData>) -> Self
[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]
fn from(v: GcRef<'gc, ClosureData>) -> Self
[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]
fn push(self, context: &mut ActiveThread<'vm>) -> Result<()>
[src]
fn status_push(self, context: &mut ActiveThread<'vm>) -> Status where
Self: Sized,
[src]
Self: Sized,
unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
Self: Sized,
[src]
Self: Sized,
fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
Self: Sized,
T: VmRoot<'vm>,
[src]
Self: Sized,
T: VmRoot<'vm>,
impl<'a> SerializeState<SeSeed> for Variants<'a>
[src]
fn serialize_state<S>(
&self,
serializer: S,
seed: &SeSeed
) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
&self,
serializer: S,
seed: &SeSeed
) -> Result<S::Ok, S::Error> where
S: Serializer,
impl<'a> StackPrimitive for Variants<'a>
[src]
fn push_to(&self, stack: &mut Stack)
[src]
fn extend_to<'b, I>(iter: I, stack: &mut Stack) where
I: IntoIterator<Item = &'b Self>,
Self: 'b,
[src]
I: IntoIterator<Item = &'b Self>,
Self: 'b,
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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<'vm, T> AsyncPushable<'vm> for T where
T: Pushable<'vm>,
[src]
T: Pushable<'vm>,
fn async_push(
Self,
&mut ActiveThread<'vm>,
Lock,
u32
) -> Poll<Result<(), Error>>
[src]
Self,
&mut ActiveThread<'vm>,
Lock,
u32
) -> Poll<Result<(), Error>>
fn async_status_push(
self,
context: &mut ActiveThread<'vm>,
lock: Lock,
frame_index: VmIndex
) -> Status where
Self: Sized,
[src]
self,
context: &mut ActiveThread<'vm>,
lock: Lock,
frame_index: VmIndex
) -> Status where
Self: Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'_, T> Captures<'_> for T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
[src]
type Remainder = Choices
fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastArc for T where
T: Downcast + Send + Sync,
[src]
T: Downcast + Send + Sync,
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
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]
U: From<T>,
impl<T, U, I> LiftInto<U, I> for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<'vm, T> Pushable<'vm> for T where
T: Userdata,
[src]
T: Userdata,
fn push(Self, &mut ActiveThread<'vm>) -> Result<(), Error>
[src]
fn status_push(self, context: &mut ActiveThread<'vm>) -> Status where
Self: Sized,
[src]
Self: Sized,
unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
Self: Sized,
[src]
Self: Sized,
fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
Self: Sized,
T: VmRoot<'vm>,
[src]
Self: Sized,
T: VmRoot<'vm>,
impl<Source> Sculptor<HNil, HNil> for Source
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,