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
๐ฌThis is a nightly-only experimental API. (
try_reserve_kind #48043)The memory allocator returned an error
Trait Implementationsยง
Sourceยงimpl Clone for TryReserveErrorKind
impl Clone for TryReserveErrorKind
Sourceยงimpl Debug for TryReserveErrorKind
impl Debug for TryReserveErrorKind
impl Eq for TryReserveErrorKind
Sourceยงimpl From<LayoutError> for TryReserveErrorKind
impl From<LayoutError> for TryReserveErrorKind
Sourceยงfn from(_: LayoutError) -> Self
fn from(_: LayoutError) -> Self
Always evaluates to TryReserveErrorKind::CapacityOverflow.
Sourceยงimpl From<TryReserveErrorKind> for TryReserveError
impl From<TryReserveErrorKind> for TryReserveError
Sourceยงfn from(kind: TryReserveErrorKind) -> Self
fn from(kind: TryReserveErrorKind) -> Self
Converts to this type from the input type.
Sourceยงimpl PartialEq for TryReserveErrorKind
impl PartialEq for TryReserveErrorKind
Sourceยงfn eq(&self, other: &TryReserveErrorKind) -> bool
fn eq(&self, other: &TryReserveErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TryReserveErrorKind
Auto Trait Implementationsยง
impl Freeze for TryReserveErrorKind
impl RefUnwindSafe for TryReserveErrorKind
impl Send for TryReserveErrorKind
impl Sync for TryReserveErrorKind
impl Unpin for TryReserveErrorKind
impl UnsafeUnpin for TryReserveErrorKind
impl UnwindSafe for TryReserveErrorKind
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more