[][src]Struct hidefix::idx::Index

pub struct Index<'a> { /* fields omitted */ }

Implementations

impl Index<'_>[src]

pub fn index<P>(path: P) -> Result<Index<'static>, Error> where
    P: AsRef<Path>, 
[src]

Open an existing HDF5 file and index all variables.

pub fn index_file<P>(
    hf: &File,
    path: Option<P>
) -> Result<Index<'static>, Error> where
    P: Into<PathBuf>, 
[src]

Index an open HDF5 file.

#[must_use]pub fn dataset(&self, s: &str) -> Option<&DatasetD<'_>>[src]

pub fn datasets(&self) -> &HashMap<String, DatasetD<'_>>[src]

#[must_use]pub fn path(&self) -> Option<&Path>[src]

pub fn reader(&self, ds: &str) -> Result<Box<dyn Reader>, Error>[src]

Create a cached reader for dataset.

This is a convenience method to use a standard std::fs::File with a cached reader, you are free to create use anything else with std::io::Read and std::io::Seek.

This method assumes the HDF5 file has the same location as at the time of indexing.

pub fn streamer(&self, ds: &str) -> Result<Box<dyn Streamer>, Error>[src]

Create a streaming reader for dataset.

This is a convenience method to use a standard std::fs::File with a stream reader, you are free to create use anything else with std::io::Read and std::io::Seek.

This method assumes the HDF5 file has the same location as at the time of indexing.

Trait Implementations

impl<'a> Debug for Index<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for Index<'a>[src]

impl<'a> Serialize for Index<'a>[src]

impl TryFrom<&'_ File> for Index<'_>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<&'_ Path> for Index<'_>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Index<'a>[src]

impl<'a> Send for Index<'a>[src]

impl<'a> Sync for Index<'a>[src]

impl<'a> Unpin for Index<'a>[src]

impl<'a> UnwindSafe for Index<'a>[src]

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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.