Enum brainoxide::types::TapeAddrError
source · pub enum TapeAddrError {
TapeAddrIsNegative,
TapeAddrTooLarge,
}
Expand description
Error type for TapeAddr operations
Variants§
TapeAddrIsNegative
The tape addr is negative in a context where this is not allowed.
TapeAddrTooLarge
Tape address is too large (depends on tape implementation)
Trait Implementations§
source§impl Clone for TapeAddrError
impl Clone for TapeAddrError
source§fn clone(&self) -> TapeAddrError
fn clone(&self) -> TapeAddrError
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 TapeAddrError
impl Debug for TapeAddrError
source§impl Display for TapeAddrError
impl Display for TapeAddrError
source§impl Error for TapeAddrError
impl Error for TapeAddrError
1.30.0 · 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<TapeAddrError> for ExecutionError
impl From<TapeAddrError> for ExecutionError
source§fn from(source: TapeAddrError) -> Self
fn from(source: TapeAddrError) -> Self
Converts to this type from the input type.
source§impl Hash for TapeAddrError
impl Hash for TapeAddrError
source§impl Ord for TapeAddrError
impl Ord for TapeAddrError
source§fn cmp(&self, other: &TapeAddrError) -> Ordering
fn cmp(&self, other: &TapeAddrError) -> 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 PartialEq<TapeAddrError> for TapeAddrError
impl PartialEq<TapeAddrError> for TapeAddrError
source§fn eq(&self, other: &TapeAddrError) -> bool
fn eq(&self, other: &TapeAddrError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TapeAddrError> for TapeAddrError
impl PartialOrd<TapeAddrError> for TapeAddrError
source§fn partial_cmp(&self, other: &TapeAddrError) -> Option<Ordering>
fn partial_cmp(&self, other: &TapeAddrError) -> 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 Copy for TapeAddrError
impl Eq for TapeAddrError
impl StructuralEq for TapeAddrError
impl StructuralPartialEq for TapeAddrError
Auto Trait Implementations§
impl RefUnwindSafe for TapeAddrError
impl Send for TapeAddrError
impl Sync for TapeAddrError
impl Unpin for TapeAddrError
impl UnwindSafe for TapeAddrError
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.