Enum TryReserveErrorKind
pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
/* private fields */
},
}
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
The memory allocator returned an error
Trait Implementations§
§impl Clone for TryReserveErrorKind
impl Clone for TryReserveErrorKind
§fn clone(&self) -> TryReserveErrorKind
fn clone(&self) -> TryReserveErrorKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TryReserveErrorKind
impl Debug for TryReserveErrorKind
§impl From<LayoutError> for TryReserveErrorKind
impl From<LayoutError> for TryReserveErrorKind
§fn from(_: LayoutError) -> TryReserveErrorKind
fn from(_: LayoutError) -> TryReserveErrorKind
Always evaluates to TryReserveErrorKind::CapacityOverflow
.
§impl From<TryReserveErrorKind> for TryReserveError
impl From<TryReserveErrorKind> for TryReserveError
§fn from(kind: TryReserveErrorKind) -> TryReserveError
fn from(kind: TryReserveErrorKind) -> TryReserveError
Converts to this type from the input type.
§impl PartialEq for TryReserveErrorKind
impl PartialEq for TryReserveErrorKind
impl Eq for TryReserveErrorKind
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 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