Skip to main content

Group

Struct Group 

Source
pub struct Group<'f> { /* private fields */ }
Expand description

A lightweight handle to an HDF5 group.

Implementations§

Source§

impl<'f> Group<'f>

Source

pub fn datasets(&self) -> Result<Vec<String>, Error>

List the names of datasets in this group.

Source

pub fn groups(&self) -> Result<Vec<String>, Error>

List the names of subgroups in this group.

Source

pub fn attrs(&self) -> Result<HashMap<String, AttrValue>, Error>

Read all attributes of this group.

Source

pub fn dataset(&self, name: &str) -> Result<Dataset<'f>, Error>

Get a dataset within this group by name.

The dataset uses the file-wide chunk-cache default. To override the cache for this one dataset, use dataset_with_options.

Source

pub fn dataset_with_options( &self, name: &str, options: DatasetAccessOptions, ) -> Result<Dataset<'f>, Error>

Get a dataset within this group by name, applying per-dataset DatasetAccessOptions that override file-wide access defaults (HDF5’s DAPL; see H5Pset_chunk_cache).

Source

pub fn group(&self, name: &str) -> Result<Group<'f>, Error>

Get a subgroup within this group by name.

Auto Trait Implementations§

§

impl<'f> !RefUnwindSafe for Group<'f>

§

impl<'f> !UnwindSafe for Group<'f>

§

impl<'f> Freeze for Group<'f>

§

impl<'f> Send for Group<'f>

§

impl<'f> Sync for Group<'f>

§

impl<'f> Unpin for Group<'f>

§

impl<'f> UnsafeUnpin for Group<'f>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.