Enum std::collections::TryReserveErrorKind
source ·
[−]pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
// some fields omitted
},
}
Expand description
Details of the allocation that caused a TryReserveError
Variants
CapacityOverflow
Error due to the computed capacity exceeding the collection’s maximum
(usually isize::MAX
bytes).
AllocError
Fields
The memory allocator returned an error
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 !=
.