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
HDF5types. - 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
- Multi-dimensional datasets.
- datatype
- Datatype objects for defining the layout of a data element.
- file
- HDF5 file objects.
- filters
- Filters for data compression and validation during file I/O.
- plist
- Property list objects.
- types
- Base types and interfaces for creating compound data types.
Structs§
- Attribute
- Represents the HDF5 attribute object.
- Attribute
Builder - An attribute builder
- Attribute
Builder Data - An attribute builder with type, shape, and data known
- Attribute
Builder Empty - An attribute builder with the type known
- Attribute
Builder Empty Shape - An attribute builder with type and shape known
- Byte
Reader - A reader for a 1-dimensional dataset of bytes.
- Container
- An object which can be read or written to.
- Dataset
- Represents the HDF5 dataset object.
- Dataset
Builder - A dataset builder
- Dataset
Builder Data - A dataset builder with type, shape, and data known
- Dataset
Builder Empty - A dataset builder with the type known
- Dataset
Builder Empty Shape - A dataset builder with type and shape known
- Dataspace
- Represents the HDF5 dataspace object.
- Datatype
- Represents the HDF5 datatype object.
- Error
Frame - An error record for an HDF5 library call.
- Error
Stack - A stack of error records from an HDF5 library call.
- Expanded
Error Stack - A converted
ErrorStackwith methods to accessErrorFramedata. - Extent
- Current and maximum dimension size for a particular dimension.
- File
- HDF5 file object.
- File
Builder - 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.
- Link
Info - Metadata describing an object link.
- Location
- Named location (file, group, dataset, named datatype).
- Location
Info - Metadata information describing a
Location - Location
Token - A token containing the address or identifier of a
Location. - Object
- Any HDF5 object that can be referenced through an identifier.
- Object
Reference1 - Object
Reference2 1.12.1 - Property
List - Represents the HDF5 property list.
- Reader
- A type for reading data from a
Container. - Simple
Extents - Extents for a simple dataspace, a multidimensional array of elements.
- Writer
- A type for writing data into a
Container.
Enums§
- Conversion
- A level of possible conversion between two types.
- Error
- The error type for HDF5-related functions.
- Extents
- The dimensionality of a dataspace.
- Link
Type - The type of an object link.
- Location
Type - The type of an object in a
Location. - Open
Mode - File opening mode.
- Referenced
Object - The result of dereferencing an object reference.
- Selection
- A selection used for reading and writing to a
Container. - Slice
OrIndex - 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
- A type that can be represented as an HDF5 datatype.
- Object
Reference - The trait for all object references. This provides a common interface over the legacy and standard reference types.
Functions§
- from_id⚠
- Takes ownership of an object via its identifier.
- 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
Dimensiontrait for indexing. - Result
- A type for results generated by HDF5-related functions where the
Errtype is set tohdf5::Error.
Derive Macros§
- H5Type
- Derive macro generating an impl of the trait
H5Type.