pub unsafe trait LinearAllocation { }
Expand description

Trait indicating a type has been allocated using LinearAllocator. This can be used to enforce that a given slice was allocated in LINEAR memory.

§Safety

Implementing this trait is a promise that the backing storage was allocated with LinearAllocator. If this is not the case, attempting to use the data with a LinearAllocation bound may result in undefined behavior.

Implementations on Foreign Types§

source§

impl<T> LinearAllocation for Vec<T, LinearAllocator>

source§

impl<T: ?Sized> LinearAllocation for Arc<T, LinearAllocator>

source§

impl<T: ?Sized> LinearAllocation for Box<T, LinearAllocator>

source§

impl<T: ?Sized> LinearAllocation for Rc<T, LinearAllocator>

source§

impl<T: ?Sized> LinearAllocation for Weak<T, LinearAllocator>

source§

impl<T: ?Sized> LinearAllocation for Weak<T, LinearAllocator>

Implementors§