pub struct Group<'f> { /* private fields */ }
Expand description
Main component of the netcdf format. Holds all variables, attributes, and dimensions. A group can always see the parents items, but a parent can not access a childs items.
Implementations§
source§impl<'f> Group<'f>
impl<'f> Group<'f>
sourcepub fn variable<'g>(&'g self, name: &str) -> Option<Variable<'g>>where
'f: 'g,
pub fn variable<'g>(&'g self, name: &str) -> Option<Variable<'g>>where
'f: 'g,
Get a variable from the group
sourcepub fn variables<'g>(&'g self) -> impl Iterator<Item = Variable<'g>>where
'f: 'g,
pub fn variables<'g>(&'g self) -> impl Iterator<Item = Variable<'g>>where
'f: 'g,
Iterate over all variables in a group
sourcepub fn attributes(&self) -> impl Iterator<Item = Attribute<'_>>
pub fn attributes(&self) -> impl Iterator<Item = Attribute<'_>>
Get all attributes in the group
sourcepub fn attribute_value(&self, name: &str) -> Option<Result<AttributeValue>>
pub fn attribute_value(&self, name: &str) -> Option<Result<AttributeValue>>
Get the attribute value
sourcepub fn dimension<'g>(&'g self, name: &str) -> Option<Dimension<'g>>where
'f: 'g,
pub fn dimension<'g>(&'g self, name: &str) -> Option<Dimension<'g>>where
'f: 'g,
Get a single dimension
sourcepub fn dimensions<'g>(&'g self) -> impl Iterator<Item = Dimension<'g>>where
'f: 'g,
pub fn dimensions<'g>(&'g self) -> impl Iterator<Item = Dimension<'g>>where
'f: 'g,
Iterator over all dimensions
sourcepub fn groups<'g>(&'g self) -> impl Iterator<Item = Group<'g>>where
'f: 'g,
pub fn groups<'g>(&'g self) -> impl Iterator<Item = Group<'g>>where
'f: 'g,
Iterator over all subgroups in this group
sourcepub fn types(&self) -> impl Iterator<Item = VariableType>
pub fn types(&self) -> impl Iterator<Item = VariableType>
Return all types in this group
Trait Implementations§
Auto Trait Implementations§
impl<'f> Freeze for Group<'f>
impl<'f> RefUnwindSafe for Group<'f>
impl<'f> Send for Group<'f>
impl<'f> Sync for Group<'f>
impl<'f> Unpin for Group<'f>
impl<'f> UnwindSafe for Group<'f>
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