Trait Recyclable

pub(in ::vec) unsafe trait Recyclable<From: Sized>: Sized

Denotes that an allocation of From can be recycled into an allocation of Self.

Safety

Self is Recyclable<From> if Layout::new::<Self>() == Layout::new::<From>().

Implementors