[−][src]Struct gluon_vm::stack::StackFrame
Fields
stack: &'b mut Stack
frame: Frame<S>
Methods
impl<'a: 'b, 'b> StackFrame<'b, State>
[src]
pub fn from_state<T>(self) -> StackFrame<'b, T> where
T: StackState,
[src]
T: StackState,
pub fn frame(
stack: &'b mut Stack,
args: VmIndex,
state: State
) -> StackFrame<'b>
[src]
stack: &'b mut Stack,
args: VmIndex,
state: State
) -> StackFrame<'b>
impl<'a: 'b, 'b> StackFrame<'b, ExternState>
[src]
impl<'a: 'b, 'b, S> StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
pub fn take_stack(self) -> &'b mut Stack where
S: Copy,
[src]
S: Copy,
pub fn len(&self) -> VmIndex
[src]
pub fn push<T>(&mut self, v: T) where
T: StackPrimitive,
[src]
T: StackPrimitive,
pub fn top(&self) -> &Value
[src]
pub fn pop(&mut self) -> Value
[src]
pub fn pop_many(&mut self, count: VmIndex)
[src]
pub fn clear(&mut self)
[src]
pub fn slide(&mut self, count: VmIndex)
[src]
pub fn get_variant(&self, index: VmIndex) -> Option<Variants>
[src]
pub fn get_value<'vm, 'value, T>(
&'value self,
thread: &'vm Thread,
index: VmIndex
) -> Option<T> where
T: Getable<'vm, 'value>,
[src]
&'value self,
thread: &'vm Thread,
index: VmIndex
) -> Option<T> where
T: Getable<'vm, 'value>,
pub fn insert_slice(&mut self, index: VmIndex, values: &[Value])
[src]
pub fn remove_range(&mut self, from: VmIndex, to: VmIndex)
[src]
pub fn excess_args(&self) -> Option<GcPtr<DataStruct>>
[src]
pub fn store_frame(&mut self) where
S: StackState + Copy,
[src]
S: StackState + Copy,
impl<'b> StackFrame<'b, ClosureState>
[src]
Trait Implementations
impl<'b, 'c, T, S> Extend<&'c T> for StackFrame<'b, S> where
T: StackPrimitive + 'c,
S: StackState,
[src]
T: StackPrimitive + 'c,
S: StackState,
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'c T>,
[src]
I: IntoIterator<Item = &'c T>,
impl<'b, S> Drop for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> Debug for StackFrame<'b, S> where
S: Debug + StackState,
[src]
S: Debug + StackState,
impl<'b, S> DerefMut for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> Deref for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> Index<u32> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> Index<RangeFull> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
type Output = [Value]
The returned type after indexing.
fn index(&self, _: RangeFull) -> &[Value]
[src]
impl<'b, S> Index<Range<u32>> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
type Output = [Value]
The returned type after indexing.
fn index(&self, range: Range<VmIndex>) -> &[Value]
[src]
impl<'b, S> Index<RangeTo<u32>> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
type Output = [Value]
The returned type after indexing.
fn index(&self, range: RangeTo<VmIndex>) -> &[Value]
[src]
impl<'b, S> Index<RangeFrom<u32>> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
type Output = [Value]
The returned type after indexing.
fn index(&self, range: RangeFrom<VmIndex>) -> &[Value]
[src]
impl<'b, S> IndexMut<u32> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> IndexMut<RangeFull> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> IndexMut<Range<u32>> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> IndexMut<RangeTo<u32>> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> IndexMut<RangeFrom<u32>> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
Auto Trait Implementations
impl<'b, S> Send for StackFrame<'b, S> where
S: Send,
S: Send,
impl<'b, S> Sync for StackFrame<'b, S> where
S: Sync,
S: Sync,
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,