Struct wasmi_validation::stack::StackWithLimit
source · pub struct StackWithLimit<T>where
T: Clone,{ /* private fields */ }
Expand description
Stack with limit.
Implementations§
source§impl<T> StackWithLimit<T>where
T: Clone,
impl<T> StackWithLimit<T>where T: Clone,
pub fn with_limit(limit: usize) -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn top(&self) -> Result<&T, Error>
pub fn top_mut(&mut self) -> Result<&mut T, Error>
pub fn get(&self, index: usize) -> Result<&T, Error>
pub fn push(&mut self, value: T) -> Result<(), Error>
pub fn pop(&mut self) -> Result<T, Error>
pub fn resize(&mut self, new_size: usize, dummy: T)
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for StackWithLimit<T>where T: RefUnwindSafe,
impl<T> Send for StackWithLimit<T>where T: Send,
impl<T> Sync for StackWithLimit<T>where T: Sync,
impl<T> Unpin for StackWithLimit<T>where T: Unpin,
impl<T> UnwindSafe for StackWithLimit<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more