pub struct NetCdf {
pub format: Format,
pub dimensions: Vec<Dimension>,
pub attributes: Vec<Attribute>,
pub variables: Vec<Variable>,
}Expand description
A netCDF classic or 64-bit offset file, read whole.
Fields§
§format: FormatWhich of the two formats it is.
dimensions: Vec<Dimension>Its dimensions, in header order.
attributes: Vec<Attribute>Its global attributes.
variables: Vec<Variable>Its variables, in header order.
Implementations§
Source§impl NetCdf
impl NetCdf
Sourcepub fn parse(bytes: &[u8]) -> Result<Self, NetCdfError>
pub fn parse(bytes: &[u8]) -> Result<Self, NetCdfError>
Reads a file from its bytes.
§Errors
NetCdfError: a netCDF-4 or CDF-5 file, bytes that are not netCDF, a header that breaks
the grammar, values past the end of the bytes, or a streaming record count.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NetCdf
impl<'de> Deserialize<'de> for NetCdf
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
impl StructuralPartialEq for NetCdf
Auto Trait Implementations§
impl Freeze for NetCdf
impl RefUnwindSafe for NetCdf
impl Send for NetCdf
impl Sync for NetCdf
impl Unpin for NetCdf
impl UnsafeUnpin for NetCdf
impl UnwindSafe for NetCdf
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