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 null dataspace.

Creates extents for a scalar dataspace.

Creates extents for a simple dataspace.

Returns true if the extents type is null.

Returns true if the extents type is scalar.

Returns true if the extents type is simple.

Returns the dataspace rank (or zero for null/scalar extents).

Returns the current extents (or empty list for null/scalar extents).

Returns the maximum extents (or empty list for null/scalar extents).

Returns the total number of elements.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.