[][src]Trait n5::DataBlock

pub trait DataBlock<T>: Into<Vec<T>> + ReadableDataBlock + WriteableDataBlock {
    fn get_size(&self) -> &[i32];
fn get_grid_position(&self) -> &[i64];
fn get_data(&self) -> &Vec<T>;
fn get_num_elements(&self) -> i32; }

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) -> &[i32]

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

fn get_data(&self) -> &Vec<T>

fn get_num_elements(&self) -> i32

Loading content...

Implementors

impl<T: Clone> DataBlock<T> for VecDataBlock<T> where
    VecDataBlock<T>: ReadableDataBlock + WriteableDataBlock
[src]

Loading content...