pub struct NetCdfMetadata { /* private fields */ }Expand description
NetCDF file metadata.
Implementations§
Source§impl NetCdfMetadata
impl NetCdfMetadata
Sourcepub fn new(version: NetCdfVersion) -> Self
pub fn new(version: NetCdfVersion) -> Self
Sourcepub fn new_classic() -> Self
pub fn new_classic() -> Self
Create NetCDF-3 Classic metadata.
Sourcepub fn new_netcdf4() -> Self
pub fn new_netcdf4() -> Self
Create NetCDF-4 metadata.
Sourcepub const fn version(&self) -> NetCdfVersion
pub const fn version(&self) -> NetCdfVersion
Get the format version.
Sourcepub const fn global_attributes(&self) -> &Attributes
pub const fn global_attributes(&self) -> &Attributes
Get global attributes.
Sourcepub fn global_attributes_mut(&mut self) -> &mut Attributes
pub fn global_attributes_mut(&mut self) -> &mut Attributes
Get mutable access to global attributes.
Sourcepub const fn dimensions(&self) -> &Dimensions
pub const fn dimensions(&self) -> &Dimensions
Get dimensions.
Sourcepub fn dimensions_mut(&mut self) -> &mut Dimensions
pub fn dimensions_mut(&mut self) -> &mut Dimensions
Get mutable access to dimensions.
Sourcepub fn variables_mut(&mut self) -> &mut Variables
pub fn variables_mut(&mut self) -> &mut Variables
Get mutable access to variables.
Sourcepub const fn cf_metadata(&self) -> Option<&CfMetadata>
pub const fn cf_metadata(&self) -> Option<&CfMetadata>
Get CF metadata.
Sourcepub fn set_cf_metadata(&mut self, cf: CfMetadata)
pub fn set_cf_metadata(&mut self, cf: CfMetadata)
Set CF metadata.
Sourcepub fn parse_cf_metadata(&mut self)
pub fn parse_cf_metadata(&mut self)
Parse CF metadata from global attributes.
Trait Implementations§
Source§impl Clone for NetCdfMetadata
impl Clone for NetCdfMetadata
Source§fn clone(&self) -> NetCdfMetadata
fn clone(&self) -> NetCdfMetadata
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 moreSource§impl Debug for NetCdfMetadata
impl Debug for NetCdfMetadata
Source§impl Default for NetCdfMetadata
impl Default for NetCdfMetadata
Source§impl<'de> Deserialize<'de> for NetCdfMetadata
impl<'de> Deserialize<'de> for NetCdfMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NetCdfMetadata
impl RefUnwindSafe for NetCdfMetadata
impl Send for NetCdfMetadata
impl Sync for NetCdfMetadata
impl Unpin for NetCdfMetadata
impl UnsafeUnpin for NetCdfMetadata
impl UnwindSafe for NetCdfMetadata
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