Skip to main content

Allocation

Trait Allocation 

pub trait Allocation:
    RefUnwindSafe
    + Send
    + Sync { }
Expand description

The owner of an allocation. The trait implementation is responsible for dropping the allocations once no more references exist.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,