Allocator

Trait Allocator 

Source
pub unsafe trait Allocator
where Self: Copy,
{ // Required method fn __do_not_implement(); }
Expand description

An allocator that can be used in combination with a context.

§Safety

Setting IS_GLOBAL to true has safety implications, since it determines whether the allocation can be safely converted into a standard container or not.

Required Methods§

Source

fn __do_not_implement()

Do not implement this trait. It is internal to Musli and will change.

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§