pub trait Stack: Default + PartialEq {
type Word: Word;
fn peek(&self, n: usize) -> Self::Word;
fn len(&self) -> Self::Word;
fn push(&mut self, item: Self::Word);
fn pop(&mut self, n: usize);
fn set(&mut self, n: usize, item: Self::Word);
}
Expand description
Represents an EVM stack of some form. This could a concrete stack (i.e. useful for execution) or an abstract stack (i.e. useful for analysis).