#[non_exhaustive]pub enum IdOutOfBounds {
UsizeOverflow,
OutOfRange {
slot: usize,
count: usize,
},
}Expand description
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.
UsizeOverflow
The ID’s value did not fit in usize on the current target.
OutOfRange
The ID’s slot was greater than or equal to the dense count.
Trait Implementations§
Source§impl Clone for IdOutOfBounds
impl Clone for IdOutOfBounds
Source§fn clone(&self) -> IdOutOfBounds
fn clone(&self) -> IdOutOfBounds
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 moreimpl Copy for IdOutOfBounds
Source§impl Debug for IdOutOfBounds
impl Debug for IdOutOfBounds
Source§impl Display for IdOutOfBounds
impl Display for IdOutOfBounds
impl Eq for IdOutOfBounds
Source§impl Error for IdOutOfBounds
impl Error for IdOutOfBounds
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 IdOutOfBounds
impl PartialEq for IdOutOfBounds
Source§fn eq(&self, other: &IdOutOfBounds) -> bool
fn eq(&self, other: &IdOutOfBounds) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IdOutOfBounds
Auto Trait Implementations§
impl Freeze for IdOutOfBounds
impl RefUnwindSafe for IdOutOfBounds
impl Send for IdOutOfBounds
impl Sync for IdOutOfBounds
impl Unpin for IdOutOfBounds
impl UnsafeUnpin for IdOutOfBounds
impl UnwindSafe for IdOutOfBounds
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