pub enum StackError {
Empty,
IndexOutOfBounds,
Overflow,
InvalidCondition(i64),
LenWords(LenWordsError),
}Expand description
Stack operation error.
Variants§
Empty
Attempted to pop a word from an empty stack.
IndexOutOfBounds
An index into the stack was out of bounds.
Overflow
The stack size exceeded the size limit.
InvalidCondition(i64)
The condition for Select or SelectRange is not 0 (false) or 1 (true).
LenWords(LenWordsError)
There was an error while calling a len words function.
Trait Implementations§
source§impl Debug for StackError
impl Debug for StackError
source§impl Display for StackError
impl Display for StackError
source§impl Error for StackError
impl Error for StackError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.81.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<LenWordsError> for StackError
impl From<LenWordsError> for StackError
source§fn from(source: LenWordsError) -> StackError
fn from(source: LenWordsError) -> StackError
Converts to this type from the input type.
source§impl<E> From<StackError> for OpAsyncError<E>
impl<E> From<StackError> for OpAsyncError<E>
source§fn from(source: StackError) -> OpAsyncError<E>
fn from(source: StackError) -> OpAsyncError<E>
Converts to this type from the input type.
source§impl From<StackError> for OpError
impl From<StackError> for OpError
source§fn from(source: StackError) -> OpError
fn from(source: StackError) -> OpError
Converts to this type from the input type.
source§impl From<StackError> for OpSyncError
impl From<StackError> for OpSyncError
source§fn from(err: StackError) -> OpSyncError
fn from(err: StackError) -> OpSyncError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StackError
impl RefUnwindSafe for StackError
impl Send for StackError
impl Sync for StackError
impl Unpin 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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more