pub struct NcGroup {
pub name: String,
pub dimensions: Vec<NcDimension>,
pub variables: Vec<NcVariable>,
pub attributes: Vec<NcAttribute>,
pub groups: Vec<NcGroup>,
}Expand description
A NetCDF group (NetCDF-4 only; classic files have one implicit root group).
Fields§
§name: String§dimensions: Vec<NcDimension>§variables: Vec<NcVariable>§attributes: Vec<NcAttribute>§groups: Vec<NcGroup>Implementations§
Source§impl NcGroup
impl NcGroup
Sourcepub fn variable(&self, name: &str) -> Option<&NcVariable>
pub fn variable(&self, name: &str) -> Option<&NcVariable>
Find a variable by name in this group.
Sourcepub fn dimension(&self, name: &str) -> Option<&NcDimension>
pub fn dimension(&self, name: &str) -> Option<&NcDimension>
Find a dimension by name in this group.
Sourcepub fn attribute(&self, name: &str) -> Option<&NcAttribute>
pub fn attribute(&self, name: &str) -> Option<&NcAttribute>
Find an attribute by name in this group.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NcGroup
impl RefUnwindSafe for NcGroup
impl Send for NcGroup
impl Sync for NcGroup
impl Unpin for NcGroup
impl UnsafeUnpin for NcGroup
impl UnwindSafe for NcGroup
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more