Trait AdvancedDynamicArray

Source
pub trait AdvancedDynamicArray<T, S>: DynamicArray<T> + FromIterator<T> {
    type InnerArrayType: DynamicArray<S>;
}
Expand description

When using advanced commands, we must be able to provide a dynamic array for both the type and the underlying type This trait allows given a type T with a dynamic array to get a dynamic array for another type S

Required Associated Types§

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.

Implementations on Foreign Types§

Source§

impl<T, S> AdvancedDynamicArray<T, S> for Vec<T>

Source§

impl<T, S, const N: usize> AdvancedDynamicArray<T, S> for ArrayVec<T, N>

Source§

impl<T, S, const N: usize> AdvancedDynamicArray<T, S> for SmallVec<[T; N]>

Implementors§