Enum TryReserveErrorKind
pub 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: Layout, non_exhaustive: () } The memory allocator returned an error
Trait Implementations
impl Clone for TryReserveErrorKind
fn clone(&self) -> Self
impl Debug for TryReserveErrorKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for TryReserveErrorKind
fn assert_fields_are_eq(&self)
impl From<LayoutError> for TryReserveErrorKind
fn from(LayoutError) -> SelfAlways evaluates to
TryReserveErrorKind::CapacityOverflow.
impl PartialEq for TryReserveErrorKind
fn eq(&self, other: &TryReserveErrorKind) -> bool
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
impl<T> Any for TryReserveErrorKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TryReserveErrorKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TryReserveErrorKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for TryReserveErrorKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for TryReserveErrorKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for TryReserveErrorKind
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for TryReserveErrorKind
impl<T> ToOwned for TryReserveErrorKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for TryReserveErrorKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TryReserveErrorKind
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for TryReserveErrorKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>