Struct hdf5::File [−][src]
#[repr(transparent)]pub struct File(_);
Expand description
HDF5 file object.
Implementations
Opens a file as read-only, file must exist.
Opens a file as read/write, file must exist.
Creates a file, fails if exists.
Opens a file as read/write if exists, creates otherwise.
Opens a file in a given mode.
Opens a file with custom file-access and file-creation options.
Returns the free space in the file in bytes (or 0 if the file handle is invalid).
Returns true if the file was opened in a read-only mode.
Returns the userblock size in bytes (or 0 if the file handle is invalid).
Closes the file and invalidates all open handles for contained objects.
Returns a copy of the file access property list.
A short alias for access_plist()
.
Returns a copy of the file creation property list.
A short alias for create_plist()
.
Methods from Deref<Target = Group>
Returns the number of objects in the container (or 0 if the container is invalid).
Returns true if the container has no linked objects (or if the container is invalid).
Create a new group in a file or group.
Creates a soft link.
A soft link does not require the linked object to exist.
Note: target
and link_name
are relative to the current object.
Creates a hard link. Note: target
and link_name
are relative to the current object.
Creates an external link.
Note: link_name
is relative to the current object,
target
is relative to the root of the source file,
target_file_name
is the path to the external file.
For a detailed explanation on how target_file_name
is resolved, see
https://portal.hdfgroup.org/display/HDF5/H5L_CREATE_EXTERNAL
Relinks an object. Note: name
and path
are relative to the current object.
Removes a link to an object from this file or group.
Check if a link with a given name exists in this file or group.
Instantiates a new typed dataset builder.
Instantiates a new dataset builder.
Visits all objects in the group
Visits all objects in the group using default iteration/traversal order.
Returns all datasets in the group, non-recursively
Returns all named types in the group, non-recursively
Returns the names of all objects in the group, non-recursively.
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
attributes are preferred to comments
Set or the commment attached to the named object.
👎 Deprecated: attributes are preferred to comments
attributes are preferred to comments
Clear the commment attached to the named object.
Methods from Deref<Target = Object>
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for File
impl UnwindSafe for File
Blanket Implementations
Mutably borrows from an owned value. Read more