Enum triton_vm::error::NumberOfWordsError
source · #[non_exhaustive]pub enum NumberOfWordsError {
IndexOutOfBounds(usize),
FailedIntegerConversion(TryFromIntError),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IndexOutOfBounds(usize)
FailedIntegerConversion(TryFromIntError)
Trait Implementations§
source§impl Clone for NumberOfWordsError
impl Clone for NumberOfWordsError
source§fn clone(&self) -> NumberOfWordsError
fn clone(&self) -> NumberOfWordsError
Returns a copy 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 Debug for NumberOfWordsError
impl Debug for NumberOfWordsError
source§impl Display for NumberOfWordsError
impl Display for NumberOfWordsError
source§impl Error for NumberOfWordsError
impl Error for NumberOfWordsError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.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<TryFromIntError> for NumberOfWordsError
impl From<TryFromIntError> for NumberOfWordsError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq for NumberOfWordsError
impl PartialEq for NumberOfWordsError
source§fn eq(&self, other: &NumberOfWordsError) -> bool
fn eq(&self, other: &NumberOfWordsError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for NumberOfWordsError
impl Eq for NumberOfWordsError
impl StructuralPartialEq for NumberOfWordsError
Auto Trait Implementations§
impl Freeze for NumberOfWordsError
impl RefUnwindSafe for NumberOfWordsError
impl Send for NumberOfWordsError
impl Sync for NumberOfWordsError
impl Unpin for NumberOfWordsError
impl UnwindSafe for NumberOfWordsError
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