Struct amplify_num::error::OverflowError
source · pub struct OverflowError<T = usize> {
pub max: T,
pub value: T,
}
Expand description
Error indicating that a value does not fit integer dimension
Fields§
§max: T
Integer bit size
value: T
Value that overflows
Trait Implementations§
source§impl<T: Clone> Clone for OverflowError<T>
impl<T: Clone> Clone for OverflowError<T>
source§fn clone(&self) -> OverflowError<T>
fn clone(&self) -> OverflowError<T>
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<T: Debug> Debug for OverflowError<T>
impl<T: Debug> Debug for OverflowError<T>
source§impl Display for OverflowError
impl Display for OverflowError
source§impl<T: Hash> Hash for OverflowError<T>
impl<T: Hash> Hash for OverflowError<T>
source§impl<T: Ord> Ord for OverflowError<T>
impl<T: Ord> Ord for OverflowError<T>
source§fn cmp(&self, other: &OverflowError<T>) -> Ordering
fn cmp(&self, other: &OverflowError<T>) -> 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<T: PartialEq> PartialEq for OverflowError<T>
impl<T: PartialEq> PartialEq for OverflowError<T>
source§impl<T: PartialOrd> PartialOrd for OverflowError<T>
impl<T: PartialOrd> PartialOrd for OverflowError<T>
impl<T: Copy> Copy for OverflowError<T>
impl<T: Eq> Eq for OverflowError<T>
impl<T> StructuralPartialEq for OverflowError<T>
Auto Trait Implementations§
impl<T> Freeze for OverflowError<T>where
T: Freeze,
impl<T> RefUnwindSafe for OverflowError<T>where
T: RefUnwindSafe,
impl<T> Send for OverflowError<T>where
T: Send,
impl<T> Sync for OverflowError<T>where
T: Sync,
impl<T> Unpin for OverflowError<T>where
T: Unpin,
impl<T> UnwindSafe for OverflowError<T>where
T: 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
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
)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
)