[][src]Struct netcdf::group::Group

pub struct Group { /* fields omitted */ }

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.

Methods

impl Group[src]

pub fn name(&self) -> &str[src]

Name of the current group

pub fn variable(&self, name: &str) -> Option<&Variable>[src]

Get a variable from the group

pub fn variables(&self) -> impl Iterator<Item = &Variable>[src]

Iterate over all variables in a group

pub fn variable_mut(&mut self, name: &str) -> Option<&mut Variable>[src]

Get a mutable variable from the group

pub fn variables_mut(&mut self) -> impl Iterator<Item = &mut Variable>[src]

Iterate over all variables in a group, with mutable access

pub fn attribute(&self, name: &str) -> Option<&Attribute>[src]

Get a single attribute

pub fn attributes(&self) -> impl Iterator<Item = &Attribute>[src]

Get all attributes

pub fn dimension(&self, name: &str) -> Option<&Dimension>[src]

Get a single dimension

pub fn dimensions(&self) -> impl Iterator<Item = &Dimension>[src]

Iterator over all dimensions

pub fn group(&self, name: &str) -> Option<&Self>[src]

Get a group

pub fn groups(&self) -> impl Iterator<Item = &Self>[src]

Iterator over all groups

pub fn group_mut(&mut self, name: &str) -> Option<&mut Self>[src]

Mutable access to group

pub fn groups_mut(&mut self) -> impl Iterator<Item = &mut Self>[src]

Iterator over all groups (mutable access)

impl Group[src]

pub fn add_attribute<T>(&mut self, name: &str, val: T) -> Result<()> where
    T: Into<AttrValue>, 
[src]

Add an attribute to the group

pub fn add_dimension(
    &mut self,
    name: &str,
    len: usize
) -> Result<&mut Dimension>
[src]

Adds a dimension with the given name and size. A size of zero gives an unlimited dimension

pub fn add_unlimited_dimension(&mut self, name: &str) -> Result<&mut Dimension>[src]

Adds a dimension with unbounded size

pub fn add_group(&mut self, name: &str) -> Result<&mut Self>[src]

Add an empty group to the dataset

pub fn add_variable_from_identifiers<T>(
    &mut self,
    name: &str,
    dims: &[Identifier]
) -> Result<&mut Variable> where
    T: Numeric
[src]

Adds a variable from a set of unique identifiers, recursing upwards from the current group if necessary.

pub fn add_variable<T>(
    &mut self,
    name: &str,
    dims: &[&str]
) -> Result<&mut Variable> where
    T: Numeric
[src]

Create a Variable into the dataset, with no data written into it

Dimensions are identified using the name of the dimension, and will recurse upwards if not found in the current group.

pub fn add_string_variable(
    &mut self,
    name: &str,
    dims: &[&str]
) -> Result<&mut Variable>
[src]

Adds a variable with a basic type of string

Trait Implementations

impl Debug for Group[src]

Auto Trait Implementations

impl Send for Group

impl Sync for Group

impl Unpin for Group

impl UnwindSafe for Group

impl RefUnwindSafe for Group

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]