pub trait FailureHandling: Sealed + Send + Sync + Unpin {
    type Result<T, E>;
}
🔬This is a nightly-only experimental API. (allocator_api #32838)
Expand description

Describes the handling behavior in case of allocation failure.

Required Associated Types§

source

type Result<T, E>

🔬This is a nightly-only experimental API. (allocator_api #32838)

The type returned by allocating functions.

Fallible functions will return Result<T, E>, but Fatal functions will return T.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl FailureHandling for Fallible

§

type Result<T, E> = Result<T, E>

source§

impl FailureHandling for Fatal

§

type Result<T, E> = T