pub enum TupleLenMismatchContext {
BinaryOp(BinaryOp),
Assignment,
}
Expand description
Context for ErrorKind::TupleLenMismatch
.
Variants§
BinaryOp(BinaryOp)
An error has occurred when evaluating a binary operation.
Assignment
An error has occurred during assignment.
Trait Implementations§
source§impl Clone for TupleLenMismatchContext
impl Clone for TupleLenMismatchContext
source§fn clone(&self) -> TupleLenMismatchContext
fn clone(&self) -> TupleLenMismatchContext
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 TupleLenMismatchContext
impl Debug for TupleLenMismatchContext
source§impl Display for TupleLenMismatchContext
impl Display for TupleLenMismatchContext
source§impl PartialEq for TupleLenMismatchContext
impl PartialEq for TupleLenMismatchContext
source§fn eq(&self, other: &TupleLenMismatchContext) -> bool
fn eq(&self, other: &TupleLenMismatchContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TupleLenMismatchContext
impl Eq for TupleLenMismatchContext
impl StructuralPartialEq for TupleLenMismatchContext
Auto Trait Implementations§
impl Freeze for TupleLenMismatchContext
impl RefUnwindSafe for TupleLenMismatchContext
impl Send for TupleLenMismatchContext
impl Sync for TupleLenMismatchContext
impl Unpin for TupleLenMismatchContext
impl UnwindSafe for TupleLenMismatchContext
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> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more