Enum alloc::collections::TryReserveErrorKind [−][src]
pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
// some fields omitted
},
}
🔬 This is a nightly-only experimental API. (try_reserve_kind
#48043)
Uncertain how much info should be exposed
Expand description
Details of the allocation that caused a TryReserveError
Variants
🔬 This is a nightly-only experimental API. (try_reserve_kind
#48043)
Uncertain how much info should be exposed
Error due to the computed capacity exceeding the collection’s maximum
(usually isize::MAX
bytes).
🔬 This is a nightly-only experimental API. (try_reserve_kind
#48043)
Uncertain how much info should be exposed
The memory allocator returned an error
Fields of AllocError
Trait Implementations
Always evaluates to TryReserveErrorKind::CapacityOverflow
.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.