pub struct TryReserveError { /* private fields */ }
Available on crate feature
std
only.Expand description
The error type for try_reserve
methods.
Implementations§
Source§impl TryReserveError
impl TryReserveError
Sourcepub fn kind(&self) -> TryReserveErrorKind
🔬This is a nightly-only experimental API. (try_reserve_kind
)
pub fn kind(&self) -> TryReserveErrorKind
try_reserve_kind
)Details about the allocation that caused the error
Trait Implementations§
1.57.0 · 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 more1.57.0 · Source§impl Debug for TryReserveError
impl Debug for TryReserveError
1.57.0 · Source§impl Display for TryReserveError
impl Display for TryReserveError
1.57.0 · 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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.78.0 · Source§impl From<TryReserveError> for Error
impl From<TryReserveError> for Error
Source§fn from(_: TryReserveError) -> Error
fn from(_: TryReserveError) -> Error
Converts TryReserveError
to an error with ErrorKind::OutOfMemory
.
TryReserveError
won’t be available as the error source()
,
but this may change in the future.
Source§impl From<TryReserveErrorKind> for TryReserveError
impl From<TryReserveErrorKind> for TryReserveError
Source§fn from(kind: TryReserveErrorKind) -> TryReserveError
fn from(kind: TryReserveErrorKind) -> TryReserveError
Converts to this type from the input type.
1.57.0 · Source§impl PartialEq for TryReserveError
impl PartialEq for TryReserveError
impl Eq for TryReserveError
impl StructuralPartialEq for TryReserveError
Auto Trait Implementations§
impl Freeze for TryReserveError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes