Enum hashbrown::TryReserveError
source · pub enum TryReserveError {
CapacityOverflow,
AllocError {
layout: Layout,
},
}
Expand description
The error type for try_reserve
methods.
Variants§
CapacityOverflow
Error due to the computed capacity exceeding the collection’s maximum
(usually isize::MAX
bytes).
AllocError
The memory allocator returned an error
Trait Implementations§
source§impl Clone for TryReserveError
impl Clone for TryReserveError
source§fn clone(&self) -> TryReserveError
fn clone(&self) -> TryReserveError
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 Debug for TryReserveError
impl Debug for TryReserveError
source§impl PartialEq for TryReserveError
impl PartialEq for TryReserveError
impl Eq 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 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
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
)