[−][src]Struct gluon_vm::thread::Context
Methods
impl Context
[src]
pub fn slide(&mut self, fields: VmIndex)
[src]
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<GcPtr<D::Value>> where
D: DataDef + Traverseable,
D::Value: Sized + Any,
[src]
&mut self,
thread: &Thread,
data: D
) -> Result<GcPtr<D::Value>> where
D: DataDef + Traverseable,
D::Value: Sized + Any,
pub fn alloc_ignore_limit<D>(&mut self, data: D) -> GcPtr<D::Value> where
D: DataDef + Traverseable,
D::Value: Sized + Any,
[src]
D: DataDef + Traverseable,
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, frame_index: VmIndex) where
F: Future<Error = Error> + Send + 'static,
F::Item: Pushable<'vm>,
[src]
F: Future<Error = Error> + Send + 'static,
F::Item: 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
Auto Trait Implementations
Blanket Implementations
impl<D, T> FromPtr for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Choices> CoproductSubsetter 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<Source> Sculptor for Source
[src]
impl<T, U, I> LiftInto for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<T> Any for T where
T: Any,
[src]
T: Any,