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 I: AsRef<[isize]> + AsMut<[isize]> + Copy + Clone

type for a small fixed-size array of isize

type U: AsRef<[usize]> + AsMut<[usize]> + Copy + Clone

type for a small fixed-size array of usize

Required Methods

fn dimensions() -> usize

length of the fixed-size arrays this type can create

fn zeros_i() -> Self::I

create array of zeros

fn zeros_u() -> Self::U

create array of zeros

Implementors