Enum alloc::collections::TryReserveError [−][src]
pub enum TryReserveError { CapacityOverflow, AllocError { layout: Layout, // some fields omitted }, }
🔬 This is a nightly-only experimental API. (try_reserve
#48043)
new API
Expand description
try_reserve
方法的错误类型。
Variants
🔬 This is a nightly-only experimental API. (try_reserve
#48043)
new API
由于计算出的容量超过集合的最大值 (通常为 isize::MAX
字节) 而导致错误。
🔬 This is a nightly-only experimental API. (try_reserve
#48043)
new API
内存分配器返回错误