pub struct Hdf5File {
pub path: String,
pub root: Hdf5Group,
pub is_open: bool,
pub read_only: bool,
}Expand description
Mock HDF5 file.
Fields§
§path: StringFile path.
root: Hdf5GroupRoot group.
is_open: boolWhether file is open.
read_only: boolRead-only flag.
Implementations§
Source§impl Hdf5File
impl Hdf5File
Sourcepub fn create_group(&mut self, name: &str) -> &mut Hdf5Group
pub fn create_group(&mut self, name: &str) -> &mut Hdf5Group
Create a group at the root.
Sourcepub fn root_group(&self) -> &Hdf5Group
pub fn root_group(&self) -> &Hdf5Group
Get root group.
Sourcepub fn root_group_mut(&mut self) -> &mut Hdf5Group
pub fn root_group_mut(&mut self) -> &mut Hdf5Group
Get mutable root group.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hdf5File
impl RefUnwindSafe for Hdf5File
impl Send for Hdf5File
impl Sync for Hdf5File
impl Unpin for Hdf5File
impl UnsafeUnpin for Hdf5File
impl UnwindSafe for Hdf5File
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.