Enum std::collections::TryReserveErrorKind
source · [−]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
Fields
The memory allocator returned an error
Trait Implementations
impl Clone for TryReserveErrorKind
source
impl Clone for TryReserveErrorKind
sourcefn clone(&self) -> TryReserveErrorKind
source
fn clone(&self) -> TryReserveErrorKind
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for TryReserveErrorKind
source
impl Debug for TryReserveErrorKind
sourceimpl From<LayoutError> for TryReserveErrorKind
source
impl From<LayoutError> for TryReserveErrorKind
sourcefn from(LayoutError) -> TryReserveErrorKind
source
fn from(LayoutError) -> TryReserveErrorKind
sourceAlways evaluates to TryReserveErrorKind::CapacityOverflow.
impl From<TryReserveErrorKind> for TryReserveError
source
impl From<TryReserveErrorKind> for TryReserveError
sourcefn from(kind: TryReserveErrorKind) -> TryReserveError
source
fn from(kind: TryReserveErrorKind) -> TryReserveError
sourceConverts to this type from the input type.
impl PartialEq<TryReserveErrorKind> for TryReserveErrorKind
source
impl PartialEq<TryReserveErrorKind> for TryReserveErrorKind
sourcefn eq(&self, other: &TryReserveErrorKind) -> bool
source
fn eq(&self, other: &TryReserveErrorKind) -> bool
sourceThis method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &TryReserveErrorKind) -> bool
source
fn ne(&self, other: &TryReserveErrorKind) -> bool
sourceThis method tests for !=.
impl Eq for TryReserveErrorKind
sourceimpl StructuralEq for TryReserveErrorKind
sourceimpl StructuralPartialEq for TryReserveErrorKind
sourceAuto Trait Implementations
impl RefUnwindSafe for TryReserveErrorKind
impl Send for TryReserveErrorKind
impl Sync for TryReserveErrorKind
impl Unpin for TryReserveErrorKind
impl UnwindSafe for TryReserveErrorKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more