[−][src]Struct gluon_vm::thread::RootedValue
A rooted value
Implementations
impl<T> RootedValue<T> where
T: VmRootInternal,
[src]
T: VmRootInternal,
pub fn re_root<'vm, U>(&self, vm: U) -> Result<RootedValue<U>> where
U: VmRoot<'vm>,
[src]
U: VmRoot<'vm>,
pub fn get_value(&self) -> &Value
[src]
pub fn get_variant(&self) -> Variants<'_>
[src]
pub fn vm(&self) -> &T
[src]
pub fn vm_mut(&mut self) -> &mut T
[src]
pub fn clone_vm(&self) -> T where
T: Clone,
[src]
T: Clone,
pub fn get<'vm>(&'vm self, index: usize) -> Option<RootedValue<T>> where
T: VmRoot<'vm>,
[src]
T: VmRoot<'vm>,
looks up the field at the given offset
pub fn get_field<'vm>(&'vm self, name: &str) -> Option<RootedValue<T>> where
T: VmRoot<'vm>,
[src]
T: VmRoot<'vm>,
looks up the record field with the given name
pub fn as_ref(&self) -> RootedValue<&Thread>
[src]
pub fn into_owned(self) -> RootedValue<RootedThread>
[src]
impl<'vm> RootedValue<&'vm Thread>
[src]
Methods from Deref<Target = Value>
pub fn get_variants(&self) -> Variants<'_>
[src]
pub fn generation(&self) -> Generation
[src]
pub fn obj_eq(&self, other: &Self) -> bool
[src]
Trait Implementations
impl<T> Clone for RootedValue<T> where
T: VmRootInternal + Clone,
[src]
T: VmRootInternal + Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for RootedValue<T> where
T: VmRootInternal,
[src]
T: VmRootInternal,
impl<T> Deref for RootedValue<T> where
T: VmRootInternal,
[src]
T: VmRootInternal,
impl<'de> Deserialize<'de> for RootedValue<RootedThread>
[src]
fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for RootedValue<RootedThread>
[src]
fn deserialize_state<D>(
seed: &mut DeSeed<'gc>,
deserializer: D
) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
seed: &mut DeSeed<'gc>,
deserializer: D
) -> Result<Self, D::Error> where
D: Deserializer<'de>,
impl<T> Drop for RootedValue<T> where
T: VmRootInternal,
[src]
T: VmRootInternal,
impl<'vm, 'value, T> Getable<'vm, 'value> for RootedValue<T> where
T: Deref<Target = Thread> + VmRoot<'vm>,
[src]
T: Deref<Target = Thread> + VmRoot<'vm>,
type Proxy = Variants<'value>
fn to_proxy(_vm: &'vm Thread, value: Variants<'value>) -> Result<Self::Proxy>
[src]
fn from_proxy(vm: &'vm Thread, proxy: &'value mut Self::Proxy) -> Self
[src]
fn from_value(vm: &'vm Thread, value: Variants<'value>) -> Self
[src]
impl<T, U> PartialEq<RootedValue<U>> for RootedValue<T> where
T: VmRootInternal,
U: VmRootInternal,
[src]
T: VmRootInternal,
U: VmRootInternal,
fn eq(&self, other: &RootedValue<U>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'vm, T> Pushable<'vm> for RootedValue<T> where
T: VmRootInternal,
[src]
T: VmRootInternal,
fn vm_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<T> Trace for RootedValue<T> where
T: VmRootInternal,
[src]
T: VmRootInternal,
Auto Trait Implementations
impl<T> !RefUnwindSafe for RootedValue<T>
impl<T> Send for RootedValue<T> where
T: Send,
T: Send,
impl<T> Sync for RootedValue<T> where
T: Sync,
T: Sync,
impl<T> Unpin for RootedValue<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for RootedValue<T>
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<Id> AsId<Id> for Id where
Id: ?Sized,
[src]
Id: ?Sized,
impl<'vm, T> AsyncPushable<'vm> for T where
T: Pushable<'vm>,
[src]
T: Pushable<'vm>,
pub 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,
pub 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
pub fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub 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,
pub fn vm_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]
type Remainder = Source
pub fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,