pub struct NcVariable {
pub name: String,
pub dimensions: Vec<NcDimension>,
pub dtype: NcType,
pub attributes: Vec<NcAttribute>,
/* private fields */
}Expand description
A NetCDF variable. The offset fields are public for reader/writer crate interoperability; they are not portable semantic metadata.
Fields§
§name: String§dimensions: Vec<NcDimension>§dtype: NcType§attributes: Vec<NcAttribute>Implementations§
Source§impl NcVariable
impl NcVariable
pub fn name(&self) -> &str
pub fn dimensions(&self) -> &[NcDimension]
pub fn coordinate_dimension(&self) -> Option<&NcDimension>
pub fn is_coordinate_variable(&self) -> bool
pub fn is_coordinate_variable_for(&self, dimension_name: &str) -> bool
pub fn dtype(&self) -> &NcType
pub fn shape(&self) -> Vec<u64>
pub fn attributes(&self) -> &[NcAttribute]
pub fn attribute(&self, name: &str) -> Option<&NcAttribute>
pub fn ndim(&self) -> usize
pub fn num_elements(&self) -> Result<u64, Error>
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NcVariable
impl Debug for NcVariable
Source§impl PartialEq for NcVariable
impl PartialEq for NcVariable
impl StructuralPartialEq for NcVariable
Auto 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