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