[−][src]Struct gluon_vm::stack::StackFrame
Implementations
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 new_frame(
stack: &'b mut Stack,
args: VmIndex,
state: State
) -> Result<StackFrame<'b>>
[src]
stack: &'b mut Stack,
args: VmIndex,
state: State
) -> Result<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 to_state(self) -> StackFrame<'b, State>
[src]
pub fn frame(&self) -> &Frame<S>
[src]
pub fn frame_mut(&mut self) -> FrameViewMut<'_, S>
[src]
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_value<'s>(&'s mut self) -> PopValue<'s>
[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]
impl<'b> StackFrame<'b, ClosureState>
[src]
pub fn get_upvar(&self, index: VmIndex) -> Variants<'_>
[src]
pub fn set_excess(&mut self, excess: bool)
[src]
pub fn set_instruction_index(&mut self, instruction_index: usize)
[src]
Trait Implementations
impl<'b, S> Debug for StackFrame<'b, S> where
S: Debug + StackState,
[src]
S: Debug + StackState,
impl<'b, S> Deref for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> DerefMut for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
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>,
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[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<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> 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<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<u32> 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<RangeFrom<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<RangeTo<u32>> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
impl<'b, S> IndexMut<u32> for StackFrame<'b, S> where
S: StackState,
[src]
S: StackState,
Auto Trait Implementations
impl<'b, S = State> !RefUnwindSafe for StackFrame<'b, S>
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,
impl<'b, S> Unpin for StackFrame<'b, S> where
S: Unpin,
S: Unpin,
impl<'b, S = State> !UnwindSafe for StackFrame<'b, S>
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<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<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> 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<Source> Sculptor<HNil, HNil> for Source
[src]
type Remainder = Source
pub fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)
[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>,