pub enum TryReserveError {
CapacityExceeded {
requested: usize,
limit: usize,
},
Overflow,
RegionIdExhausted(RegionIdExhaustedError),
}Expand description
Error returned by fallible Region<T> constructors and capacity operations.
Variants§
CapacityExceeded
The requested capacity/length exceeds slotmap’s maximum live-entry domain.
Fields
Overflow
An internal capacity computation overflowed usize.
RegionIdExhausted(RegionIdExhaustedError)
The process-wide region_id counter has been exhausted. Only ever
returned by Region::try_new/try_with_capacity (constructors mint a
new region_id); Region::try_reserve on an existing Region never
produces this variant, since it does not mint a new region_id.
Trait Implementations§
Source§impl Clone for TryReserveError
impl Clone for TryReserveError
Source§fn clone(&self) -> TryReserveError
fn clone(&self) -> TryReserveError
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 TryReserveError
Source§impl Debug for TryReserveError
impl Debug for TryReserveError
Source§impl Display for TryReserveError
impl Display for TryReserveError
impl Eq for TryReserveError
Source§impl Error for TryReserveError
impl Error for TryReserveError
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 From<RegionIdExhaustedError> for TryReserveError
impl From<RegionIdExhaustedError> for TryReserveError
Source§fn from(err: RegionIdExhaustedError) -> Self
fn from(err: RegionIdExhaustedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TryReserveError
impl PartialEq for TryReserveError
impl StructuralPartialEq for TryReserveError
Auto Trait Implementations§
impl Freeze for TryReserveError
impl RefUnwindSafe for TryReserveError
impl Send for TryReserveError
impl Sync for TryReserveError
impl Unpin for TryReserveError
impl UnsafeUnpin for TryReserveError
impl UnwindSafe for TryReserveError
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