Trait array_init::IsArray[][src]

pub unsafe trait IsArray {
    type Item;
    fn len() -> usize;
}

Trait for things which are actually arrays.

Probably shouldn’t implement this yourself, but you can.

Safety

  • if Array : IsArray, then it must be sound to transmute between Array and [Array::Item; Array::len()]

Associated Types

type Item[src]

The stored T

Loading content...

Required methods

fn len() -> usize[src]

The number of elements of the array

Loading content...

Implementors

impl<T, const N: usize> IsArray for [T; N][src]

type Item = T

Loading content...