[−][src]Struct gluon_vm::thread::OwnedContext
Methods
impl<'b> OwnedContext<'b>
[src]
pub fn alloc<D>(&mut self, data: D) -> Result<GcRef<D::Value>> where
D: DataDef + Trace,
D::Value: Sized + Any,
[src]
D: DataDef + Trace,
D::Value: Sized + Any,
pub fn alloc_owned<D>(&mut self, data: D) -> Result<OwnedGcRef<D::Value>> where
D: DataDef + Trace,
D::Value: Sized + Any,
[src]
D: DataDef + Trace,
D::Value: Sized + Any,
pub fn debug_info(&self) -> DebugInfo
[src]
pub fn frame_level(&self) -> usize
[src]
pub fn stack_frame<T>(&mut self) -> StackFrame<T> where
T: StackState,
[src]
T: StackState,
Methods from Deref<Target = Context>
pub fn push_new_data(
&mut self,
thread: &Thread,
tag: VmTag,
fields: usize
) -> Result<Variants>
[src]
&mut self,
thread: &Thread,
tag: VmTag,
fields: usize
) -> Result<Variants>
pub fn push_new_record(
&mut self,
thread: &Thread,
fields: usize,
field_names: &[InternedStr]
) -> Result<Variants>
[src]
&mut self,
thread: &Thread,
fields: usize,
field_names: &[InternedStr]
) -> Result<Variants>
pub fn alloc_with<D>(
&mut self,
thread: &Thread,
data: D
) -> Result<GcRef<D::Value>> where
D: DataDef + Trace,
D::Value: Sized + Any,
[src]
&mut self,
thread: &Thread,
data: D
) -> Result<GcRef<D::Value>> where
D: DataDef + Trace,
D::Value: Sized + Any,
pub fn alloc_ignore_limit<D>(&mut self, data: D) -> GcRef<D::Value> where
D: DataDef + Trace,
D::Value: Sized + Any,
[src]
D: DataDef + Trace,
D::Value: Sized + Any,
pub fn set_hook(&mut self, hook: Option<HookFn>) -> Option<HookFn>
[src]
pub fn set_hook_mask(&mut self, flags: HookFlags)
[src]
pub fn set_max_stack_size(&mut self, limit: VmIndex)
[src]
pub fn stacktrace(&self, frame_level: usize) -> Stacktrace
[src]
pub unsafe fn return_future<'vm, F>(
&mut self,
future: F,
lock: Lock,
frame_index: VmIndex
) where
F: Future + Send + 'vm,
F::Output: Pushable<'vm>,
[src]
&mut self,
future: F,
lock: Lock,
frame_index: VmIndex
) where
F: Future + Send + 'vm,
F::Output: Pushable<'vm>,
"Returns a future", letting the virtual machine know that future
must be resolved to
produce the actual value.
Safety
This function is unsafe because the vm
lifetime must not outlive the lifetime of the
Thread
Trait Implementations
impl<'b> Deref for OwnedContext<'b>
[src]
impl<'b> DerefMut for OwnedContext<'b>
[src]
Auto Trait Implementations
impl<'b> !RefUnwindSafe for OwnedContext<'b>
impl<'b> !Send for OwnedContext<'b>
impl<'b> !Sync for OwnedContext<'b>
impl<'b> Unpin for OwnedContext<'b>
impl<'b> !UnwindSafe for OwnedContext<'b>
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<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<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> 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<Source> Sculptor<HNil, HNil> for Source
[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>,