Enum smallvec::CollectionAllocErr
source · [−]pub enum CollectionAllocErr {
CapacityOverflow,
AllocErr {
layout: Layout,
},
}
Expand description
Error type for APIs with fallible heap allocation
Variants
CapacityOverflow
Overflow usize::MAX
or other error during size computation
AllocErr
Fields
layout: Layout
The layout that was passed to the allocator
The allocator return an error