Enum std::collections::TryReserveErrorKind
source · pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
/* private fields */
},
}
🔬This is a nightly-only experimental API. (
try_reserve_kind
#48043)Expand description
导致 TryReserveError
的分配的详细信息
Variants§
CapacityOverflow
🔬This is a nightly-only experimental API. (
try_reserve_kind
#48043)由于计算出的容量超过集合的最大值 (通常为 isize::MAX
字节) 而导致错误。
AllocError
🔬This is a nightly-only experimental API. (
try_reserve_kind
#48043)内存分配器返回错误
Trait Implementations§
source§impl Clone for TryReserveErrorKind
impl Clone for TryReserveErrorKind
source§fn clone(&self) -> TryReserveErrorKind
fn clone(&self) -> TryReserveErrorKind
返回值的副本。 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 TryReserveErrorKind
impl Debug for TryReserveErrorKind
source§impl From<LayoutError> for TryReserveErrorKind
impl From<LayoutError> for TryReserveErrorKind
source§impl From<TryReserveErrorKind> for TryReserveError
impl From<TryReserveErrorKind> for TryReserveError
source§fn from(kind: TryReserveErrorKind) -> TryReserveError
fn from(kind: TryReserveErrorKind) -> TryReserveError
从输入类型转换为此类型。
impl Eq for TryReserveErrorKind
impl StructuralEq for TryReserveErrorKind
impl StructuralPartialEq for TryReserveErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for TryReserveErrorKind
impl Send for TryReserveErrorKind
impl Sync for TryReserveErrorKind
impl Unpin for TryReserveErrorKind
impl UnwindSafe for TryReserveErrorKind
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