Enum hdf5::Extents [−][src]
pub enum Extents {
Null,
Scalar,
Simple(SimpleExtents),
}
Variants
Null
A null dataspace contains no data elements.
Note that no selections can be applied to a null dataset as there is nothing to select.
Scalar
A scalar dataspace, representing just one element.
The datatype of this one element may be very complex, e.g., a compound structure with members being of any allowed HDF5 datatype, including multidimensional arrays, strings, and nested compound structures. By convention, the rank of a scalar dataspace is always 0 (zero); it may be thought of as a single, dimensionless point, though that point may be complex.
Simple(SimpleExtents)
Tuple Fields
A simple dataspace, a multidimensional array of elements.
The dimensionality of the dataspace (or the rank of the array) is fixed and is defined at creation time. The size of each dimension can grow during the life time of the dataspace from the current size up to the maximum size. Both the current size and the maximum size are specified at creation time. The sizes of dimensions at any particular time in the life of a dataspace are called the current dimensions, or the dataspace extent. They can be queried along with the maximum sizes.
A dimension can have an UNLIMITED
maximum size. This results in a dataset which can
be resized after being created.
Do note that an unlimited dimension will force chunking of the
dataset which could result in excessive disk usage with the default chunk size.
It is recommended to apply some compression filter to such datasets.
Implementations
Creates extents for a simple dataspace.
Returns the current extents (or empty list for null/scalar extents).
Returns the maximum extents (or empty list for null/scalar extents).
pub fn iter(
&self
) -> impl ExactSizeIterator<Item = &Extent> + DoubleEndedIterator<Item = &Extent>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Extents
impl UnwindSafe for Extents
Blanket Implementations
Mutably borrows from an owned value. Read more