[][src]Struct n5::filesystem::N5Filesystem

pub struct N5Filesystem { /* fields omitted */ }

A filesystem-backed N5 container.

Methods

impl N5Filesystem[src]

pub fn open(base_path: &str) -> Result<N5Filesystem>[src]

Open an existing N5 container by path.

pub fn open_or_create(base_path: &str) -> Result<N5Filesystem>[src]

Open an existing N5 container by path or create one if none exists.

Note this will update the version attribute for existing containers.

pub fn get_attributes(&self, path_name: &str) -> Result<Value>[src]

Trait Implementations

impl N5Reader for N5Filesystem[src]

fn dataset_exists(&self, path_name: &str) -> bool[src]

Test whether a dataset exists.

impl N5Writer for N5Filesystem[src]

fn set_attribute<T: Serialize>(
    &self,
    path_name: &str,
    key: String,
    attribute: T
) -> Result<(), Error>
[src]

Set a single attribute.

fn set_dataset_attributes(
    &self,
    path_name: &str,
    data_attrs: &DatasetAttributes
) -> Result<(), Error>
[src]

Set mandatory dataset attributes.

fn create_dataset(
    &self,
    path_name: &str,
    data_attrs: &DatasetAttributes
) -> Result<(), Error>
[src]

Create a dataset. This will create the dataset group and attributes, but not populate any block data. Read more

fn remove_all(&self) -> Result<(), Error>[src]

Remove the N5 container.

impl Clone for N5Filesystem[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> N5NdarrayReader for T where
    T: N5Reader
[src]

fn read_ndarray<T>(
    &self,
    path_name: &str,
    data_attrs: &DatasetAttributes,
    bbox: &BoundingBox
) -> Result<Array<T, Dim<IxDynImpl>>, Error> where
    VecDataBlock<T>: DataBlock<T>,
    T: ReflectedType + Zero
[src]

Read an abitrary bounding box from an N5 volume in an ndarray, reading blocks in serial as necessary. Read more

impl<T> N5NdarrayWriter for T where
    T: N5Writer
[src]

fn write_ndarray<T>(
    &self,
    path_name: &str,
    data_attrs: &DatasetAttributes,
    offset: GridCoord,
    array: &Array<T, Dim<IxDynImpl>>,
    fill_val: T
) -> Result<(), Error> where
    VecDataBlock<T>: DataBlock<T>,
    T: ReflectedType + Zero
[src]

Write an abitrary bounding box from an ndarray into an N5 volume, writing blocks in serial as necessary. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]