pub unsafe trait DynamicArray<T>: IntoIterator<Item = T> { }
Expand description
A trait implemented by types which can allocate memory for an array of given size in a contiguous memory
This is used for vulkan commands returning arrays
Vec<T>
implements this trait as well as SmallVec if the smallvec feature is enabled and ArrayVec if the arrayvec feature is enabled
This trait is unsafe because no allocating a memory area of the proper size when calling
allocate_with_capacity can cause undefined behavior when using this library
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.