Struct alloc::collections::TryReserveError
1.57.0 · source · pub struct TryReserveError {
kind: TryReserveErrorKind,
}
Expand description
The error type for try_reserve
methods.
Fields§
§kind: TryReserveErrorKind
Implementations§
source§impl TryReserveError
impl TryReserveError
sourcepub fn kind(&self) -> TryReserveErrorKind
🔬This is a nightly-only experimental API. (try_reserve_kind
#48043)
pub fn kind(&self) -> TryReserveErrorKind
try_reserve_kind
#48043)Details about the allocation that caused the error
Trait Implementations§
source§impl Clone for TryReserveError
impl Clone for TryReserveError
source§fn clone(&self) -> TryReserveError
fn clone(&self) -> TryReserveError
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 moresource§impl Debug for TryReserveError
impl Debug for TryReserveError
source§impl Display for TryReserveError
impl Display for TryReserveError
source§impl Eq for TryReserveError
impl Eq for TryReserveError
fn assert_receiver_is_total_eq(&self)
source§impl Error for TryReserveError
impl Error for TryReserveError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§fn type_id(&self, _: Internal) -> TypeIdwhere
Self: 'static,
fn type_id(&self, _: Internal) -> TypeIdwhere Self: 'static,
🔬This is a nightly-only experimental API. (
error_type_id
#60784)Gets the
TypeId
of self
.1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<TryReserveErrorKind> for TryReserveError
impl From<TryReserveErrorKind> for TryReserveError
source§fn from(kind: TryReserveErrorKind) -> Self
fn from(kind: TryReserveErrorKind) -> Self
Converts to this type from the input type.
source§impl PartialEq<TryReserveError> for TryReserveError
impl PartialEq<TryReserveError> for TryReserveError
source§fn eq(&self, other: &TryReserveError) -> bool
fn eq(&self, other: &TryReserveError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralEq for TryReserveError
impl StructuralPartialEq for TryReserveError
Auto Trait Implementations§
impl RefUnwindSafe for TryReserveError
impl Send for TryReserveError
impl Sync for TryReserveError
impl Unpin for TryReserveError
impl UnwindSafe for TryReserveError
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