pub enum Object<'f> {
Group(Group<'f>),
Dataset(Box<Dataset<'f>>),
}Expand description
The resolved target of an HDF5 object reference (H5R_OBJECT): either a
group or a dataset.
Produced by Dataset::dereference. MATLAB .mat files use object
references pervasively — a cell array stores one reference per element, and
the #subsystem# machinery references its payloads — so resolving a
reference to the group or dataset it names is the foundation for reading
those structures.
The Dataset handle is boxed: it carries a parsed object
header and is much larger than a Group handle, so boxing
keeps Object (and a Vec<Object>) compact without a size disparity. The
Box derefs transparently, so &obj_dataset is usable wherever a
&Dataset is expected.
Variants§
Group(Group<'f>)
The reference points at a group’s object header.
Dataset(Box<Dataset<'f>>)
The reference points at a dataset’s object header.