Chunk

Trait Chunk 

Source
pub trait Chunk {
    type Array;

    // Required methods
    fn array(&self) -> &Self::Array;
    fn array_mut(&mut self) -> &mut Self::Array;
}
Expand description

One piece of a chunked lattice map.

Required Associated Types§

Source

type Array

The inner array type. This makes it easier for Chunk implementations to satisfy access trait bounds by inheriting them from existing array types like Array.

Required Methods§

Source

fn array(&self) -> &Self::Array

Borrow the inner array.

Source

fn array_mut(&mut self) -> &mut Self::Array

Mutably borrow the inner array.

Implementors§

Source§

impl<N, Chan> Chunk for Array<N, Chan>

Source§

type Array = Array<N, Chan>