pub enum StackError {
Overflow {
depth: usize,
width: usize,
limit: usize,
},
Underflow {
depth: usize,
},
ZeroWidth {
depth: usize,
},
}Expand description
Exact failure evidence from a unit-accounted operand stack.
Variants§
Overflow
A push would exceed the configured logical depth.
Fields
Underflow
A pop was requested from an empty stack.
ZeroWidth
A width policy violated its contract by returning zero.
Trait Implementations§
Source§impl Clone for StackError
impl Clone for StackError
Source§fn clone(&self) -> StackError
fn clone(&self) -> StackError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StackError
Source§impl Debug for StackError
impl Debug for StackError
impl Eq for StackError
Source§impl PartialEq for StackError
impl PartialEq for StackError
impl StructuralPartialEq for StackError
Auto Trait Implementations§
impl Freeze for StackError
impl RefUnwindSafe for StackError
impl Send for StackError
impl Sync for StackError
impl Unpin for StackError
impl UnsafeUnpin for StackError
impl UnwindSafe for StackError
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