Enum std::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
内存分配器返回错误
Show fields
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
此方法测试 self 和 other 值是否相等,并由 == 使用。 Read more
此方法测试 !=。