[][src]Trait hidefix::idx::IntoIndex

pub trait IntoIndex {
    type Indexed;
    fn index(&self) -> Result<Self::Indexed>;
}

Convenience trait for returning an index for an existing HDF5 file or dataset opened with the standard rust HDF5 library.

use hidefix::prelude::*;

let hf = hdf5::File::open("tests/data/coads_climatology.nc4").unwrap();
let idx = hf.index().unwrap();

let mut r = idx.reader("SST").unwrap();
let values = r.values::<f32>(None, None).unwrap();

println!("SST: {:?}", values);

Associated Types

Loading content...

Required methods

fn index(&self) -> Result<Self::Indexed>[src]

Loading content...

Implementations on Foreign Types

impl IntoIndex for File[src]

type Indexed = Index<'static>

impl IntoIndex for Dataset[src]

type Indexed = DatasetD<'static>

Loading content...

Implementors

Loading content...