Enum TryReserveErrorKind
enum TryReserveErrorKind
Details of the allocation that caused a TryReserveError
Variants
-
CapacityOverflow Error due to the computed capacity exceeding the collection's maximum (usually
isize::MAXbytes).-
AllocError { layout: crate::alloc::Layout } The memory allocator returned an error
Implementations
impl Clone for TryReserveErrorKind
fn clone(self: &Self) -> Self
impl Debug for TryReserveErrorKind
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for TryReserveErrorKind
impl Freeze for TryReserveErrorKind
impl From for TryReserveErrorKind
fn from(_: LayoutError) -> SelfAlways evaluates to
TryReserveErrorKind::CapacityOverflow.
impl PartialEq for TryReserveErrorKind
fn eq(self: &Self, other: &TryReserveErrorKind) -> bool
impl RefUnwindSafe for TryReserveErrorKind
impl Send for TryReserveErrorKind
impl StructuralPartialEq for TryReserveErrorKind
impl Sync for TryReserveErrorKind
impl Unpin for TryReserveErrorKind
impl UnwindSafe for TryReserveErrorKind
impl<T> Any for TryReserveErrorKind
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for TryReserveErrorKind
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for TryReserveErrorKind
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for TryReserveErrorKind
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for TryReserveErrorKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for TryReserveErrorKind
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for TryReserveErrorKind
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for TryReserveErrorKind
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for TryReserveErrorKind
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>