pub enum NetCdfVersion {
Classic,
Offset64Bit,
NetCdf4,
NetCdf4Classic,
}Expand description
NetCDF file format version.
Variants§
Classic
NetCDF-3 Classic format
Offset64Bit
NetCDF-3 64-bit offset format
NetCdf4
NetCDF-4 (HDF5-based)
NetCdf4Classic
NetCDF-4 Classic model
Implementations§
Source§impl NetCdfVersion
impl NetCdfVersion
Sourcepub const fn is_netcdf4(&self) -> bool
pub const fn is_netcdf4(&self) -> bool
Check if this is a NetCDF-4 variant.
Sourcepub const fn is_netcdf3(&self) -> bool
pub const fn is_netcdf3(&self) -> bool
Check if this is a NetCDF-3 variant.
Sourcepub const fn version_number(&self) -> u8
pub const fn version_number(&self) -> u8
Get the version number.
Sourcepub const fn format_name(&self) -> &'static str
pub const fn format_name(&self) -> &'static str
Get the format name.
Trait Implementations§
Source§impl Clone for NetCdfVersion
impl Clone for NetCdfVersion
Source§fn clone(&self) -> NetCdfVersion
fn clone(&self) -> NetCdfVersion
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 NetCdfVersion
impl Debug for NetCdfVersion
Source§impl Default for NetCdfVersion
impl Default for NetCdfVersion
Source§fn default() -> NetCdfVersion
fn default() -> NetCdfVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetCdfVersion
impl<'de> Deserialize<'de> for NetCdfVersion
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
Source§impl PartialEq for NetCdfVersion
impl PartialEq for NetCdfVersion
Source§impl Serialize for NetCdfVersion
impl Serialize for NetCdfVersion
impl Copy for NetCdfVersion
impl Eq for NetCdfVersion
impl StructuralPartialEq for NetCdfVersion
Auto Trait Implementations§
impl Freeze for NetCdfVersion
impl RefUnwindSafe for NetCdfVersion
impl Send for NetCdfVersion
impl Sync for NetCdfVersion
impl Unpin for NetCdfVersion
impl UnsafeUnpin for NetCdfVersion
impl UnwindSafe for NetCdfVersion
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