pub type TryReserveError = TryReserveError;

Aliased Type§

enum TryReserveError {
    CapacityOverflow,
    AllocError {
        layout: Layout,
    },
}

Variants§

§

CapacityOverflow

Error due to the computed capacity exceeding the collection’s maximum (usually isize::MAX bytes).

§

AllocError

Fields

§layout: Layout

The layout of the allocation request that failed.

The memory allocator returned an error