Trait Hdf5File

Source
pub trait Hdf5File {
    type Object;

    // Required methods
    fn write(&self, path: &str) -> Result<()>;
    fn read(path: &str) -> Result<Self::Object>;
}

Required Associated Types§

Required Methods§

Source

fn write(&self, path: &str) -> Result<()>

Stores Object as an HDF5 file at path.

Source

fn read(path: &str) -> Result<Self::Object>

Reads Object from HDF5 file at path.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<DataType: Clone + H5Type> Hdf5File for InMemoryAnnDataset<DataType>