[][src]Struct gluon_vm::thread::ExecuteContext

pub struct ExecuteContext<'b, 'gc, S: StackState = ClosureState> {
    pub thread: &'b Thread,
    pub stack: StackFrame<'b, S>,
    pub gc: &'gc mut Gc,
    // some fields omitted
}

Fields

thread: &'b Threadstack: StackFrame<'b, S>gc: &'gc mut Gc

Methods

impl<'b, 'gc, S> ExecuteContext<'b, 'gc, S> where
    S: StackState
[src]

pub fn alloc<D>(&mut self, data: D) -> Result<GcRef<D::Value>> where
    D: DataDef + Trace,
    D::Value: Sized + Any
[src]

pub fn push_new_data(&mut self, tag: VmTag, fields: usize) -> Result<Variants>[src]

pub fn push_new_record(
    &mut self,
    fields: usize,
    field_names: &[InternedStr]
) -> Result<Variants>
[src]

pub fn push_new_alloc<D>(&mut self, def: D) -> Result<Variants> where
    D: DataDef + Trace,
    D::Value: Sized + Any,
    Variants<'a>: From<GcRef<'a, D::Value>>, 
[src]

Auto Trait Implementations

impl<'b, 'gc, S = ClosureState> !RefUnwindSafe for ExecuteContext<'b, 'gc, S>

impl<'b, 'gc, S = ClosureState> !Send for ExecuteContext<'b, 'gc, S>

impl<'b, 'gc, S = ClosureState> !Sync for ExecuteContext<'b, 'gc, S>

impl<'b, 'gc, S> Unpin for ExecuteContext<'b, 'gc, S> where
    S: Unpin

impl<'b, 'gc, S = ClosureState> !UnwindSafe for ExecuteContext<'b, 'gc, S>

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> Downcast for T where
    T: 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<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

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.