Crate hdf5_metno

Source
Expand description

HDF5 for Rust.

This crate provides thread-safe Rust bindings and high-level wrappers for the HDF5 library API. Some of the features include:

  • Thread-safety with non-threadsafe libhdf5 builds guaranteed via reentrant mutexes.
  • Native representation of most HDF5 types, including variable-length strings and arrays.
  • Derive-macro for automatic mapping of user structs and enums to HDF5 types.
  • Multi-dimensional array reading/writing interface via ndarray.

Direct low-level bindings are also available and provided in the hdf5-sys crate.

Requires HDF5 library of version 1.8.4 or later. Newer versions will enable additional features of the library. Such items are marked in the documentation with a version number indicating the required version of HDF5. The have-direct and have-parallel features also indicates HDF5 functionality.

Modules§

dataset
datatype
file
filters
plist
types

Structs§

Attribute
Represents the HDF5 attribute object.
AttributeBuilder
An attribute builder
AttributeBuilderData
An attribute builder with type, shape, and data known
AttributeBuilderEmpty
An attribute builder with the type known
AttributeBuilderEmptyShape
An attribute builder with type and shape known
ByteReader
Container
An object which can be read or written to.
Dataset
Represents the HDF5 dataset object.
DatasetBuilder
A dataset builder
DatasetBuilderData
A dataset builder with type, shape, and data known
DatasetBuilderEmpty
A dataset builder with the type known
DatasetBuilderEmptyShape
A dataset builder with type and shape known
Dataspace
Represents the HDF5 dataspace object.
Datatype
Represents the HDF5 datatype object.
ErrorFrame
ErrorStack
ExpandedErrorStack
Extent
Current and maximum dimension size for a particular dimension.
File
HDF5 file object.
FileBuilder
File builder allowing to customize file access/creation property lists.
Group
Represents the HDF5 group object.
Hyperslab
A descriptor of a selection of an N-dimensional array.
LinkInfo
Location
Named location (file, group, dataset, named datatype).
LocationInfo
Metadata information describing a Location
LocationToken
Object
Any HDF5 object that can be referenced through an identifier.
ObjectReference1
ObjectReference2
PropertyList
Represents the HDF5 property list.
Reader
SimpleExtents
Extents for a simple dataspace, a multidimensional array of elements.
Writer

Enums§

Conversion
Error
The error type for HDF5-related functions.
Extents
LinkType
LocationType
OpenMode
File opening mode.
ReferencedObject
The result of dereferencing an object reference.
Selection
A selection used for reading and writing to a Container.
SliceOrIndex
A selector of a one-dimensional array

Constants§

HDF5_VERSION
HDF5 library version used at link time. See hdf5_sys::HDF5_VERSION

Traits§

Dimension
A trait for the shape and index types.
H5Type
ObjectReference
The trait for all object references. This provides a common interface over the legacy and standard reference types.

Functions§

from_id
is_library_threadsafe
Returns true if the HDF5 library is threadsafe.
library_version
Returns the runtime version of the HDF5 library.
silence_errors
Silence errors emitted by hdf5

Type Aliases§

Ix
A scalar integer type used by Dimension trait for indexing.
Result
A type for results generated by HDF5-related functions where the Err type is set to hdf5::Error.

Derive Macros§

H5Type