pub trait Array<T> {
type Array: Set<Elem = T> + Pod;
// Required methods
fn iter_mut(array: &mut Self::Array) -> IterMut<'_, T>;
fn iter(array: &Self::Array) -> Iter<'_, T>;
fn as_slice(array: &Self::Array) -> &[T];
}Required Associated Types§
Required Methods§
fn iter_mut(array: &mut Self::Array) -> IterMut<'_, T>
fn iter(array: &Self::Array) -> Iter<'_, T>
fn as_slice(array: &Self::Array) -> &[T]
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.