Enum std::collections::TryReserveErrorKind [−][src]
pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: Layout,
// some fields omitted
},
}
Expand description
导致 TryReserveError
的分配的详细信息
Variants
CapacityOverflow
由于计算出的容量超过集合的最大值 (通常为 isize::MAX
字节) 而导致错误。
AllocError
内存分配器返回错误
Trait Implementations
执行转换。
此方法测试 self
和 other
值是否相等,并由 ==
使用。 Read more
此方法测试 !=
。