pub enum MemoryDecodeError<A, V> {
MemoryAccess(A),
ValueDecode(V),
}Variants§
Implementations§
Source§impl<A> MemoryDecodeError<A, Infallible>
impl<A> MemoryDecodeError<A, Infallible>
pub fn into_access_error(self) -> A
Source§impl<V> MemoryDecodeError<Infallible, V>
impl<V> MemoryDecodeError<Infallible, V>
pub fn into_decode_error(self) -> V
Trait Implementations§
Source§impl<A: Clone, V: Clone> Clone for MemoryDecodeError<A, V>
impl<A: Clone, V: Clone> Clone for MemoryDecodeError<A, V>
Source§fn clone(&self) -> MemoryDecodeError<A, V>
fn clone(&self) -> MemoryDecodeError<A, V>
Returns a duplicate 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<A: Display + Debug, V: Display + Debug> Error for MemoryDecodeError<A, V>
Available on crate feature std only.
impl<A: Display + Debug, V: Display + Debug> Error for MemoryDecodeError<A, V>
Available on crate feature
std only.1.30.0 · 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.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<A: Ord, V: Ord> Ord for MemoryDecodeError<A, V>
impl<A: Ord, V: Ord> Ord for MemoryDecodeError<A, V>
Source§fn cmp(&self, other: &MemoryDecodeError<A, V>) -> Ordering
fn cmp(&self, other: &MemoryDecodeError<A, V>) -> 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<A: PartialOrd, V: PartialOrd> PartialOrd for MemoryDecodeError<A, V>
impl<A: PartialOrd, V: PartialOrd> PartialOrd for MemoryDecodeError<A, V>
impl<A: Copy, V: Copy> Copy for MemoryDecodeError<A, V>
impl<A: Eq, V: Eq> Eq for MemoryDecodeError<A, V>
impl<A, V> StructuralPartialEq for MemoryDecodeError<A, V>
Auto Trait Implementations§
impl<A, V> Freeze for MemoryDecodeError<A, V>
impl<A, V> RefUnwindSafe for MemoryDecodeError<A, V>where
A: RefUnwindSafe,
V: RefUnwindSafe,
impl<A, V> Send for MemoryDecodeError<A, V>
impl<A, V> Sync for MemoryDecodeError<A, V>
impl<A, V> Unpin for MemoryDecodeError<A, V>
impl<A, V> UnwindSafe for MemoryDecodeError<A, V>where
A: UnwindSafe,
V: UnwindSafe,
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