pub struct NcVariable {
pub name: String,
pub dimensions: Vec<NcDimension>,
pub dtype: NcType,
pub attributes: Vec<NcAttribute>,
/* private fields */
}Expand description
A NetCDF variable (metadata only – data is read on demand).
Fields§
§name: String§dimensions: Vec<NcDimension>§dtype: NcType§attributes: Vec<NcAttribute>Implementations§
Source§impl NcVariable
impl NcVariable
Sourcepub fn dimensions(&self) -> &[NcDimension]
pub fn dimensions(&self) -> &[NcDimension]
Variable dimensions.
Sourcepub fn attributes(&self) -> &[NcAttribute]
pub fn attributes(&self) -> &[NcAttribute]
Variable attributes.
Sourcepub fn attribute(&self, name: &str) -> Option<&NcAttribute>
pub fn attribute(&self, name: &str) -> Option<&NcAttribute>
Find an attribute by name.
Sourcepub fn num_elements(&self) -> u64
pub fn num_elements(&self) -> u64
Total number of elements.
Trait Implementations§
Source§impl Clone for NcVariable
impl Clone for NcVariable
Source§fn clone(&self) -> NcVariable
fn clone(&self) -> NcVariable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NcVariable
impl RefUnwindSafe for NcVariable
impl Send for NcVariable
impl Sync for NcVariable
impl Unpin for NcVariable
impl UnsafeUnpin for NcVariable
impl UnwindSafe for NcVariable
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