Skip to main content

Allocator

Trait Allocator 

Source
pub trait Allocator: AllocatorCore + Clone { }
Expand description

A dynamic memory allocator for use with crate::alloc::Poly.

Users should implement AllocatorCore instead and use the blanket implementation for the full cloneable 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§

Source§

impl<T> Allocator for T
where T: AllocatorCore + Clone,