Trait rds::array::NDDataMut [] [src]

pub trait NDDataMut<T: Clone + Display>: NDData<T> {
    fn get_data_mut(&mut self) -> &mut [T];

    fn idx_mut<'a>(&'a mut self, idx: &[usize]) -> &'a mut T { ... }
    fn transpose(&mut self) { ... }
    fn assign(&mut self, other: &NDData<T>) { ... }
}

A trait for struture giving mutable access to a N-dimensional array of type T.

Required Methods

Return the underlying storage array as a mutable slice.

Provided Methods

Take a slice of length N representing an -index in the array and return a mutable reference to the element at this position.

Perform a generic transpose. All the dimensions need to be the same.

Assign another NDData to the NDDataMut. The shapes need to be identical.

Implementors