Struct evmil::util::IntervalStack
source · pub struct IntervalStack<T: PartialEq> { /* private fields */ }
Implementations§
source§impl<T> IntervalStack<T>
impl<T> IntervalStack<T>
pub fn new(lower: impl Into<Interval<usize>>, upper: Vec<T>) -> Self
pub fn pop(&mut self) -> &mut Self
sourcepub fn min_len(&self) -> usize
pub fn min_len(&self) -> usize
Determine the minimum length of any stack represented by this abstract stack.
sourcepub fn max_len(&self) -> usize
pub fn max_len(&self) -> usize
Determine the maximum length of any stack represented by this abstract stack.
sourcepub fn values(&self) -> &[T]
pub fn values(&self) -> &[T]
Access the array of concrete values represented by this stack (i.e. the upper portion of the stack).
sourcepub fn set(self, n: usize, val: T) -> Self
pub fn set(self, n: usize, val: T) -> Self
Set ith
item from the top on this stack. Thus, 0
is the
top of the stack, etc.
sourcepub fn join(self, other: &IntervalStack<T>) -> Self
pub fn join(self, other: &IntervalStack<T>) -> Self
Join two abstract stacks together.
Trait Implementations§
source§impl<T> Bottom for IntervalStack<T>
impl<T> Bottom for IntervalStack<T>
source§impl<T> Clone for IntervalStack<T>
impl<T> Clone for IntervalStack<T>
source§impl<T: PartialEq + Clone + JoinLattice> Default for IntervalStack<T>
impl<T: PartialEq + Clone + JoinLattice> Default for IntervalStack<T>
source§impl<T> Display for IntervalStack<T>
impl<T> Display for IntervalStack<T>
source§impl<T> JoinInto for IntervalStack<T>
impl<T> JoinInto for IntervalStack<T>
source§fn join_into(&mut self, other: &IntervalStack<T>) -> bool
fn join_into(&mut self, other: &IntervalStack<T>) -> bool
Merge an abstract stack into this stack, whilst reporting whether this stack changed or not.
source§impl<T: Ord + PartialEq> Ord for IntervalStack<T>
impl<T: Ord + PartialEq> Ord for IntervalStack<T>
source§fn cmp(&self, other: &IntervalStack<T>) -> Ordering
fn cmp(&self, other: &IntervalStack<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: PartialEq + PartialEq> PartialEq for IntervalStack<T>
impl<T: PartialEq + PartialEq> PartialEq for IntervalStack<T>
source§fn eq(&self, other: &IntervalStack<T>) -> bool
fn eq(&self, other: &IntervalStack<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd + PartialEq> PartialOrd for IntervalStack<T>
impl<T: PartialOrd + PartialEq> PartialOrd for IntervalStack<T>
source§fn partial_cmp(&self, other: &IntervalStack<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &IntervalStack<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Eq + PartialEq> Eq for IntervalStack<T>
impl<T: PartialEq> StructuralPartialEq for IntervalStack<T>
Auto Trait Implementations§
impl<T> Freeze for IntervalStack<T>
impl<T> RefUnwindSafe for IntervalStack<T>where
T: RefUnwindSafe,
impl<T> Send for IntervalStack<T>where
T: Send,
impl<T> Sync for IntervalStack<T>where
T: Sync,
impl<T> Unpin for IntervalStack<T>where
T: Unpin,
impl<T> UnwindSafe for IntervalStack<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