Array

Trait Array 

Source
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§

Source

type Array: Set<Elem = T> + Pod

Required Methods§

Source

fn iter_mut(array: &mut Self::Array) -> IterMut<'_, T>

Source

fn iter(array: &Self::Array) -> Iter<'_, T>

Source

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.

Implementors§

Source§

impl<T: Pod> Array<T> for U1

Source§

impl<T: Pod> Array<T> for U2

Source§

impl<T: Pod> Array<T> for U3

Source§

impl<T: Pod> Array<T> for U4

Source§

impl<T: Pod> Array<T> for U5

Source§

impl<T: Pod> Array<T> for U6

Source§

impl<T: Pod> Array<T> for U7

Source§

impl<T: Pod> Array<T> for U8

Source§

impl<T: Pod> Array<T> for U9

Source§

impl<T: Pod> Array<T> for U10

Source§

impl<T: Pod> Array<T> for U11

Source§

impl<T: Pod> Array<T> for U12

Source§

impl<T: Pod> Array<T> for U13

Source§

impl<T: Pod> Array<T> for U14

Source§

impl<T: Pod> Array<T> for U15

Source§

impl<T: Pod> Array<T> for U16