pub struct ConcreteStack<T: EvmWord> { /* private fields */ }Expand description
An implementation of EvmStack which gives a concrete view of the
stack. In other words, it represents the stack exactly.
Implementations§
Trait Implementations§
Source§impl<T: Clone + EvmWord> Clone for ConcreteStack<T>
impl<T: Clone + EvmWord> Clone for ConcreteStack<T>
Source§fn clone(&self) -> ConcreteStack<T>
fn clone(&self) -> ConcreteStack<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for ConcreteStack<T>
impl<T> Debug for ConcreteStack<T>
Source§impl<T: EvmWord> Default for ConcreteStack<T>
impl<T: EvmWord> Default for ConcreteStack<T>
Source§impl<T> Display for ConcreteStack<T>
impl<T> Display for ConcreteStack<T>
Source§impl<T: EvmWord> EvmStack for ConcreteStack<T>
impl<T: EvmWord> EvmStack for ConcreteStack<T>
Source§type Word = T
type Word = T
Defines what constitutes a word in this EVM. For example, a
concrete evm will use a
w256 here whilst an abstract evm
will use something that can, for example, describe unknown
values.Source§fn set(&mut self, n: usize, item: Self::Word) -> Self::Word
fn set(&mut self, n: usize, item: Self::Word) -> Self::Word
Set
nth item from stack (where n==0 is top element),
whilst returning the item previously at that position.Source§fn has_capacity(&self, n: usize) -> bool
fn has_capacity(&self, n: usize) -> bool
Check capacity for
n additional items on the stack.Source§fn has_operands(&self, n: usize) -> bool
fn has_operands(&self, n: usize) -> bool
Check at least
n operands on the stack.Source§impl<T: Ord + EvmWord> Ord for ConcreteStack<T>
impl<T: Ord + EvmWord> Ord for ConcreteStack<T>
Source§fn cmp(&self, other: &ConcreteStack<T>) -> Ordering
fn cmp(&self, other: &ConcreteStack<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + EvmWord> PartialOrd for ConcreteStack<T>
impl<T: PartialOrd + EvmWord> PartialOrd for ConcreteStack<T>
impl<T: Eq + EvmWord> Eq for ConcreteStack<T>
impl<T: EvmWord> StructuralPartialEq for ConcreteStack<T>
Auto Trait Implementations§
impl<T> Freeze for ConcreteStack<T>
impl<T> RefUnwindSafe for ConcreteStack<T>where
T: RefUnwindSafe,
impl<T> Send for ConcreteStack<T>where
T: Send,
impl<T> Sync for ConcreteStack<T>where
T: Sync,
impl<T> Unpin for ConcreteStack<T>where
T: Unpin,
impl<T> UnwindSafe for ConcreteStack<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