Struct hdf5::Container[][src]

#[repr(transparent)]
pub struct Container(_);
Expand description

An object which can be read or written to.

Implementations

Creates a reader wrapper for this dataset/attribute, allowing to set custom type conversion options when reading.

Creates a writer wrapper for this dataset/attribute, allowing to set custom type conversion options when writing.

Returns the datatype of the dataset/attribute.

Returns the dataspace of the dataset/attribute.

Returns the shape of the dataset/attribute.

Returns the number of dimensions in the dataset/attribute.

Returns the total number of elements in the dataset/attribute.

Returns whether this dataset/attribute is a scalar.

Returns the amount of file space required for the dataset/attribute. Note that this only accounts for the space which has actually been allocated (it can be equal to zero).

Reads a dataset/attribute into an n-dimensional array.

If the array has a fixed number of dimensions, it must match the dimensionality of the dataset/attribute.

Reads a dataset/attribute into a vector in memory order.

Reads a dataset/attribute into a 1-dimensional array.

The dataset/attribute must be 1-dimensional.

Reads the given slice of the dataset into a 1-dimensional array. The slice must yield a 1-dimensional result.

Reads a dataset/attribute into a 2-dimensional array.

The dataset/attribute must be 2-dimensional.

Reads the given slice of the dataset into a 2-dimensional array. The slice must yield a 2-dimensional result.

Reads a dataset/attribute into an array with dynamic number of dimensions.

Reads a slice of an n-dimensional array. If the dimensionality D has a fixed number of dimensions, it must match the dimensionality of the slice, after singleton dimensions are dropped. Use the multi-dimensional slice macro s![] from ndarray to conveniently create a multidimensional slice.

Reads a scalar dataset/attribute.

Writes an n-dimensional array view into a dataset/attribute.

The shape of the view must match the shape of the dataset/attribute exactly. The input argument must be convertible to an array view (this includes slices).

Writes a 1-dimensional array view into a dataset/attribute in memory order.

The number of elements in the view must match the number of elements in the destination dataset/attribute. The input argument must be convertible to a 1-dimensional array view (this includes slices).

Writes all data from the array arr into the given slice of the target dataset. The shape of arr must match the shape the set of elements included in the slice. If the array has a fixed number of dimensions, it must match the dimensionality of dataset. Use the multi-dimensional slice macro s![] from ndarray to conveniently create a multidimensional slice.

Writes a scalar dataset/attribute.

Methods from Deref<Target = Location>

Returns the name of the object within the file, or empty string if the object doesn’t have a name (e.g., an anonymous dataset).

Returns the name of the file containing the named object (or the file itself).

Returns a handle to the file containing the named object (or the file itself).

Returns the commment attached to the named object, if any.

👎 Deprecated:

attributes are preferred to comments

Set or the commment attached to the named object.

👎 Deprecated:

attributes are preferred to comments

Clear the commment attached to the named object.

Methods from Deref<Target = Object>

Returns reference count if the handle is valid and 0 otherwise.

Returns true if the object has a valid unlocked identifier (false for pre-defined locked identifiers like property list classes).

Returns type of the object.

Downcast the object into $tp if possible.

Downcast the object into $tp if possible.

Downcast the object into $tp if possible.

Downcast the object into $tp if possible.

Downcast the object into $tp if possible.

Downcast the object into $tp if possible.

Downcast the object into $tp if possible.

Downcast the object into $tp if possible.

Downcast the object into $tp if possible.

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

The resulting type after dereferencing.

Dereferences the value.

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

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.