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
sourceimpl Clone for TryReserveError
impl Clone for TryReserveError
sourcefn clone(&self) -> TryReserveError
fn clone(&self) -> TryReserveError
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TryReserveError
impl Debug for TryReserveError
sourceimpl PartialEq<TryReserveError> for TryReserveError
impl PartialEq<TryReserveError> for TryReserveError
sourcefn eq(&self, other: &TryReserveError) -> bool
fn eq(&self, other: &TryReserveError) -> bool
impl Eq for TryReserveError
impl StructuralEq for TryReserveError
impl StructuralPartialEq for TryReserveError
Auto Trait Implementations
impl RefUnwindSafe for TryReserveError
impl Send for TryReserveError
impl Sync for TryReserveError
impl Unpin for TryReserveError
impl UnwindSafe for TryReserveError
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more