Trait AllocatorDefault

Source
pub trait AllocatorDefault:
    Allocator
    + Clone
    + Default {
    const DEFAULT: Self;
}
Expand description

A trait implemented by allocators supporting a constant initializer. This cannot use ConstDefault as it is not implemented for the external Global allocator.

Required Associated Constants§

Source

const DEFAULT: Self

The constant initializer for this allocator.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§