#[non_exhaustive]pub enum OffsetOverflow {
IndexOverflow {
value: usize,
},
}Expand description
Reasons a usize could not be represented in a target index width during
builder offset construction.
§Performance
Formatting is O(message length).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IndexOverflow
A usize value did not fit in the target LayoutIndex width.
Trait Implementations§
Source§impl Clone for OffsetOverflow
impl Clone for OffsetOverflow
Source§fn clone(&self) -> OffsetOverflow
fn clone(&self) -> OffsetOverflow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OffsetOverflow
impl Debug for OffsetOverflow
Source§impl Display for OffsetOverflow
impl Display for OffsetOverflow
Source§impl Error for OffsetOverflow
impl Error for OffsetOverflow
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 OffsetOverflow
impl PartialEq for OffsetOverflow
Source§fn eq(&self, other: &OffsetOverflow) -> bool
fn eq(&self, other: &OffsetOverflow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OffsetOverflow
impl Eq for OffsetOverflow
impl StructuralPartialEq for OffsetOverflow
Auto Trait Implementations§
impl Freeze for OffsetOverflow
impl RefUnwindSafe for OffsetOverflow
impl Send for OffsetOverflow
impl Sync for OffsetOverflow
impl Unpin for OffsetOverflow
impl UnsafeUnpin for OffsetOverflow
impl UnwindSafe for OffsetOverflow
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