Enum win_sys::alloc::collections::TryReserveErrorKind
source · [−]pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
/* private fields */
},
}🔬 This is a nightly-only experimental API. (
try_reserve_kind)Expand description
Details of the allocation that caused a TryReserveError
Variants
CapacityOverflow
🔬 This is a nightly-only experimental API. (
try_reserve_kind)Error due to the computed capacity exceeding the collection’s maximum
(usually isize::MAX bytes).
AllocError
Fields
layout: Layout🔬 This is a nightly-only experimental API. (
try_reserve_kind)The layout of allocation request that failed
🔬 This is a nightly-only experimental API. (
try_reserve_kind)The memory allocator returned an error
Trait Implementations
sourceimpl Clone for TryReserveErrorKind
impl Clone for TryReserveErrorKind
sourcepub fn clone(&self) -> TryReserveErrorKind
pub fn clone(&self) -> TryReserveErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TryReserveErrorKind
impl Debug for TryReserveErrorKind
sourceimpl From<LayoutError> for TryReserveErrorKind
impl From<LayoutError> for TryReserveErrorKind
sourcepub fn from(LayoutError) -> TryReserveErrorKind
pub fn from(LayoutError) -> TryReserveErrorKind
Always evaluates to TryReserveErrorKind::CapacityOverflow.
sourceimpl From<TryReserveErrorKind> for TryReserveError
impl From<TryReserveErrorKind> for TryReserveError
sourcepub fn from(kind: TryReserveErrorKind) -> TryReserveError
pub fn from(kind: TryReserveErrorKind) -> TryReserveError
Performs the conversion.
sourceimpl PartialEq<TryReserveErrorKind> for TryReserveErrorKind
impl PartialEq<TryReserveErrorKind> for TryReserveErrorKind
sourcepub fn eq(&self, other: &TryReserveErrorKind) -> bool
pub fn eq(&self, other: &TryReserveErrorKind) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcepub fn ne(&self, other: &TryReserveErrorKind) -> bool
pub fn ne(&self, other: &TryReserveErrorKind) -> bool
This method tests for !=.
impl Eq for TryReserveErrorKind
impl StructuralEq for TryReserveErrorKind
impl StructuralPartialEq for TryReserveErrorKind
Auto Trait Implementations
impl RefUnwindSafe for TryReserveErrorKind
impl Send for TryReserveErrorKind
impl Sync for TryReserveErrorKind
impl Unpin for TryReserveErrorKind
impl UnwindSafe for TryReserveErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more