[][src]Trait n5::DataBlock

pub trait DataBlock<T> {
    fn get_size(&self) -> &[u32];
fn get_grid_position(&self) -> &[u64];
fn get_data(&self) -> &[T];
fn get_num_elements(&self) -> u32; fn get_header(&self) -> BlockHeader { ... } }

Common interface for data blocks of element (rust) type T.

To enable custom types to be written to N5 volumes, implement this trait.

Required methods

fn get_size(&self) -> &[u32]

fn get_grid_position(&self) -> &[u64]

fn get_data(&self) -> &[T]

fn get_num_elements(&self) -> u32

Loading content...

Provided methods

fn get_header(&self) -> BlockHeader

Loading content...

Implementors

impl<T: ReflectedType, C: AsRef<[T]>> DataBlock<T> for SliceDataBlock<T, C>[src]

Loading content...