Struct std::collections::TryReserveError
1.57.0 · source · [−]pub struct TryReserveError { /* private fields */ }
Expand description
The error type for try_reserve
methods.
Implementations
sourceimpl TryReserveError
impl TryReserveError
sourcepub fn kind(&self) -> TryReserveErrorKind
pub fn kind(&self) -> TryReserveErrorKind
Details about the allocation that caused the error
Trait Implementations
sourceimpl Clone for TryReserveError
impl Clone for TryReserveError
sourcepub fn clone(&self) -> TryReserveError
pub fn clone(&self) -> TryReserveError
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 TryReserveError
impl Debug for TryReserveError
sourceimpl Display for TryReserveError
impl Display for TryReserveError
sourceimpl Error for TryReserveError
impl Error for TryReserveError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
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<TryReserveError> for TryReserveError
impl PartialEq<TryReserveError> for TryReserveError
sourcepub fn eq(&self, other: &TryReserveError) -> bool
pub fn eq(&self, other: &TryReserveError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &TryReserveError) -> bool
pub fn ne(&self, other: &TryReserveError) -> bool
This method tests for !=
.
impl Eq for TryReserveError
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
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