Trait multiarray::LayoutHelper [] [src]

pub unsafe trait LayoutHelper {
    type I: AsRef<[isize]> + AsMut<[isize]> + Copy + Clone;
    type U: AsRef<[usize]> + AsMut<[usize]> + Copy + Clone;
    fn dimensions() -> usize;
    fn zeros_i() -> Self::I;
    fn zeros_u() -> Self::U;
}

Helper trait for creating small isize and usize arrays of a fixed size. They are used to store information about the memory layout of a multi-dimensional array.

Associated Types

type for a small fixed-size array of isize

type for a small fixed-size array of usize

Required Methods

length of the fixed-size arrays this type can create

create array of zeros

create array of zeros

Implementors