Enum borsh::maybestd::collections::TryReserveError [−][src]
pub enum TryReserveError { CapacityOverflow, AllocError { layout: Layout, // some fields omitted }, }
🔬 This is a nightly-only experimental API. (try_reserve
)
new API
Expand description
The error type for try_reserve
methods.
Variants
🔬 This is a nightly-only experimental API. (try_reserve
)
new API
Error due to the computed capacity exceeding the collection’s maximum
(usually isize::MAX
bytes).
🔬 This is a nightly-only experimental API. (try_reserve
)
new API
The memory allocator returned an error
Show fields
Fields of AllocError
layout: Layout
🔬 This is a nightly-only experimental API. (try_reserve
)
new API
The layout of allocation request that failed
Trait Implementations
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 TryReserveError
impl Send for TryReserveError
impl Sync for TryReserveError
impl Unpin for TryReserveError
impl UnwindSafe for TryReserveError
Blanket Implementations
Mutably borrows from an owned value. Read more