Enum nom::lib::std::collections::TryReserveErrorKind [−][src]
pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
// some fields omitted
},
}
🔬 This is a nightly-only experimental API. (
try_reserve_kind
)Expand description
Details of the allocation that caused a TryReserveError
Variants
CapacityOverflow
🔬 This is a nightly-only experimental API. (
try_reserve_kind
)Error due to the computed capacity exceeding the collection’s maximum
(usually isize::MAX
bytes).
AllocError
Fields
layout: Layout
🔬 This is a nightly-only experimental API. (
try_reserve_kind
)The layout of allocation request that failed
🔬 This is a nightly-only experimental API. (
try_reserve_kind
)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 !=
.
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
Mutably borrows from an owned value. Read more