Struct alloc::collections::TryReserveError
1.57.0 · source · pub struct TryReserveError { /* private fields */ }
Expand description
try_reserve
方法的错误类型。
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)有关导致错误的分配的详细信息
Trait Implementations§
source§impl Clone for TryReserveError
impl Clone for TryReserveError
source§fn clone(&self) -> TryReserveError
fn clone(&self) -> TryReserveError
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moresource§impl Debug for TryReserveError
impl Debug for TryReserveError
source§impl Display for TryReserveError
impl Display for TryReserveError
source§impl Error for TryReserveError
impl Error for TryReserveError
source§impl From<TryReserveErrorKind> for TryReserveError
impl From<TryReserveErrorKind> for TryReserveError
source§fn from(kind: TryReserveErrorKind) -> Self
fn from(kind: TryReserveErrorKind) -> Self
从输入类型转换为此类型。
source§impl PartialEq<TryReserveError> for TryReserveError
impl PartialEq<TryReserveError> for TryReserveError
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§
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
从拥有的值中借用。 Read more