[−][src]Struct hidefix::idx::Index
Implementations
impl Index<'_>
[src]
pub fn index<P>(path: P) -> Result<Index<'static>, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
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]
hf: &File,
path: Option<P>
) -> Result<Index<'static>, Error> where
P: Into<PathBuf>,
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> Serialize for Index<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl TryFrom<&'_ File> for Index<'_>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(f: &File) -> Result<Index<'static>, Error>
[src]
impl TryFrom<&'_ Path> for Index<'_>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,