Enum alloc::collections::TryReserveErrorKind [−][src]
pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
// some fields omitted
},
}🔬 This is a nightly-only experimental API. (try_reserve_kind #48043)
Uncertain how much info should be exposed
Expand description
导致 TryReserveError 的分配的详细信息
Variants
🔬 This is a nightly-only experimental API. (try_reserve_kind #48043)
Uncertain how much info should be exposed
由于计算出的容量超过集合的最大值 (通常为 isize::MAX 字节) 而导致错误。
🔬 This is a nightly-only experimental API. (try_reserve_kind #48043)
Uncertain how much info should be exposed
内存分配器返回错误
Fields of AllocError
Trait Implementations
执行转换。
此方法测试 self 和 other 值是否相等,并由 == 使用。 Read more
此方法测试 !=。