Struct netcdf::Group

source ·
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>

source

pub fn name(&self) -> String

Name of the current group

source

pub fn variable<'g>(&'g self, name: &str) -> Option<Variable<'g>>
where 'f: 'g,

Get a variable from the group

source

pub fn variables<'g>(&'g self) -> impl Iterator<Item = Variable<'g>>
where 'f: 'g,

Iterate over all variables in a group

source

pub fn attribute<'a>(&'a self, name: &str) -> Option<Attribute<'a>>

Get a single attribute

source

pub fn attributes(&self) -> impl Iterator<Item = Attribute<'_>>

Get all attributes in the group

source

pub fn attribute_value(&self, name: &str) -> Option<Result<AttributeValue>>

Get the attribute value

source

pub fn dimension<'g>(&'g self, name: &str) -> Option<Dimension<'g>>
where 'f: 'g,

Get a single dimension

source

pub fn dimensions<'g>(&'g self) -> impl Iterator<Item = Dimension<'g>>
where 'f: 'g,

Iterator over all dimensions

source

pub fn group<'g>(&'g self, name: &str) -> Option<Group<'g>>
where 'f: 'g,

Get a group

source

pub fn groups<'g>(&'g self) -> impl Iterator<Item = Group<'g>>
where 'f: 'g,

Iterator over all subgroups in this group

source

pub fn types(&self) -> impl Iterator<Item = VariableType>

Return all types in this group

Trait Implementations§

source§

impl<'f> Clone for Group<'f>

source§

fn clone(&self) -> Group<'f>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'f> Debug for Group<'f>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.