pub enum MemConvError {
Overflow,
Inexact,
}Expand description
Error for failed conversions (overflow, rounding disallowed, etc.)
Variants§
Overflow
The intermediate byte value overflowed u64.
Inexact
The byte count is not exactly divisible by the target unit size.
Trait Implementations§
Source§impl Clone for MemConvError
impl Clone for MemConvError
Source§fn clone(&self) -> MemConvError
fn clone(&self) -> MemConvError
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 Debug for MemConvError
impl Debug for MemConvError
Source§impl Display for MemConvError
impl Display for MemConvError
Source§impl Error for MemConvError
impl Error for MemConvError
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 PartialEq for MemConvError
impl PartialEq for MemConvError
impl Eq for MemConvError
impl StructuralPartialEq for MemConvError
Auto Trait Implementations§
impl Freeze for MemConvError
impl RefUnwindSafe for MemConvError
impl Send for MemConvError
impl Sync for MemConvError
impl Unpin for MemConvError
impl UnsafeUnpin for MemConvError
impl UnwindSafe for MemConvError
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