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 for OverflowError<T>where
T: Clone,
impl<T> Clone for OverflowError<T>where
T: Clone,
Source§fn clone(&self) -> OverflowError<T>
fn clone(&self) -> OverflowError<T>
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<T> Debug for OverflowError<T>where
T: Debug,
impl<T> Debug for OverflowError<T>where
T: Debug,
Source§impl Display for OverflowError
impl Display for OverflowError
Source§impl<T> Hash for OverflowError<T>where
T: Hash,
impl<T> Hash for OverflowError<T>where
T: Hash,
Source§impl<T> Ord for OverflowError<T>where
T: Ord,
impl<T> Ord for OverflowError<T>where
T: Ord,
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 for OverflowError<T>where
T: PartialEq,
impl<T> PartialEq for OverflowError<T>where
T: PartialEq,
Source§impl<T> PartialOrd for OverflowError<T>where
T: PartialOrd,
impl<T> PartialOrd for OverflowError<T>where
T: PartialOrd,
impl<T> Copy for OverflowError<T>where
T: Copy,
impl<T> Eq for OverflowError<T>where
T: Eq,
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,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.