Enum alloc::collections::TryReserveErrorKind
source · [−]pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
/* private fields */
},
}
🔬This is a nightly-only experimental API. (
try_reserve_kind
#48043)Expand description
Details of the allocation that caused a TryReserveError
Variants
CapacityOverflow
🔬This is a nightly-only experimental API. (
try_reserve_kind
#48043)Error due to the computed capacity exceeding the collection’s maximum
(usually isize::MAX
bytes).
AllocError
Fields
🔬This is a nightly-only experimental API. (
try_reserve_kind
#48043)The memory allocator returned an error
Trait Implementations
sourceimpl Clone for TryReserveErrorKind
impl Clone for TryReserveErrorKind
sourcefn clone(&self) -> TryReserveErrorKind
fn clone(&self) -> TryReserveErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TryReserveErrorKind
impl Debug for TryReserveErrorKind
sourceimpl From<LayoutError> for TryReserveErrorKind
impl From<LayoutError> for TryReserveErrorKind
sourcefn from(_: LayoutError) -> Self
fn from(_: LayoutError) -> Self
Always evaluates to TryReserveErrorKind::CapacityOverflow
.
sourceimpl From<TryReserveErrorKind> for TryReserveError
impl From<TryReserveErrorKind> for TryReserveError
sourcefn from(kind: TryReserveErrorKind) -> Self
fn from(kind: TryReserveErrorKind) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TryReserveErrorKind> for TryReserveErrorKind
impl PartialEq<TryReserveErrorKind> for TryReserveErrorKind
sourcefn eq(&self, other: &TryReserveErrorKind) -> bool
fn eq(&self, other: &TryReserveErrorKind) -> bool
impl Eq for TryReserveErrorKind
impl StructuralEq for TryReserveErrorKind
impl StructuralPartialEq for TryReserveErrorKind
Auto Trait Implementations
impl RefUnwindSafe for TryReserveErrorKind
impl Send for TryReserveErrorKind
impl Sync for TryReserveErrorKind
impl Unpin for TryReserveErrorKind
impl UnwindSafe for TryReserveErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more