[−][src]Struct gluon_vm::stack::Stack
Implementations
impl Stack
[src]
pub fn new() -> Stack
[src]
pub fn set_max_stack_size(&mut self, max_stack_size: VmIndex)
[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 push<T>(&mut self, v: T) where
T: StackPrimitive,
[src]
T: StackPrimitive,
pub fn last(&self) -> Option<Variants<'_>>
[src]
pub fn get_variant(&self, index: VmIndex) -> Option<Variants<'_>>
[src]
pub fn remove_range(&mut self, from: VmIndex, to: VmIndex)
[src]
pub fn len(&self) -> VmIndex
[src]
pub fn get_values(&self) -> &[Value]
[src]
pub fn get_frames(&self) -> &[Frame<State>]
[src]
pub fn get_frames_mut(&mut self) -> &mut [Frame<State>]
[src]
pub fn current_frame<S>(&mut self) -> StackFrame<'_, S> where
S: StackState,
[src]
S: StackState,
pub fn release_lock(&mut self, lock: Lock)
[src]
Release a lock on the stack.
Panics if the lock is not the top-most lock
pub fn stacktrace(&self, frame_level: usize) -> Stacktrace
[src]
Creates a stackrace starting from frame_level
Trait Implementations
impl Debug for Stack
[src]
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Stack
[src]
fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
impl<'c, T> Extend<&'c T> for Stack where
T: StackPrimitive + 'c,
[src]
T: StackPrimitive + 'c,
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 Index<RangeFrom<u32>> for Stack
[src]
type Output = [Value]
The returned type after indexing.
fn index(&self, range: RangeFrom<VmIndex>) -> &[Value]
[src]
impl Index<RangeFull> for Stack
[src]
type Output = [Value]
The returned type after indexing.
fn index(&self, range: RangeFull) -> &[Value]
[src]
impl Index<RangeTo<u32>> for Stack
[src]
type Output = [Value]
The returned type after indexing.
fn index(&self, range: RangeTo<VmIndex>) -> &[Value]
[src]
impl Index<u32> for Stack
[src]
impl IndexMut<u32> for Stack
[src]
impl SerializeState<SeSeed> for Stack
[src]
fn serialize_state<__S>(
&self,
__serializer: __S,
__seed: &SeSeed
) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S,
__seed: &SeSeed
) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
impl Trace for Stack
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl !UnwindSafe for Stack
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>,