Struct grib::ProdDefinition
source · pub struct ProdDefinition { /* private fields */ }
Implementations§
source§impl ProdDefinition
impl ProdDefinition
pub fn from_payload(slice: Box<[u8]>) -> Result<Self, BuildError>
pub fn iter(&self) -> Iter<'_, u8>
sourcepub fn num_coordinates(&self) -> u16
pub fn num_coordinates(&self) -> u16
Number of coordinate values after Template
sourcepub fn prod_tmpl_num(&self) -> u16
pub fn prod_tmpl_num(&self) -> u16
Product Definition Template Number
sourcepub fn parameter_category(&self) -> Option<u8>
pub fn parameter_category(&self) -> Option<u8>
Use CodeTable4_1 to get textual representation of the returned numerical value.
sourcepub fn parameter_number(&self) -> Option<u8>
pub fn parameter_number(&self) -> Option<u8>
Use CodeTable4_2 to get textual representation of the returned numerical value.
sourcepub fn generating_process(&self) -> Option<u8>
pub fn generating_process(&self) -> Option<u8>
Use CodeTable4_3 to get textual representation of the returned numerical value.
sourcepub fn forecast_time(&self) -> Option<ForecastTime>
pub fn forecast_time(&self) -> Option<ForecastTime>
Returns the unit and value of the forecast time wrapped by Option
.
Use CodeTable4_4 to get textual
representation of the unit.
sourcepub fn fixed_surfaces(&self) -> Option<(FixedSurface, FixedSurface)>
pub fn fixed_surfaces(&self) -> Option<(FixedSurface, FixedSurface)>
Returns a tuple of two FixedSurface, wrapped by Option
.
Trait Implementations§
source§impl Clone for ProdDefinition
impl Clone for ProdDefinition
source§fn clone(&self) -> ProdDefinition
fn clone(&self) -> ProdDefinition
Returns a copy 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 ProdDefinition
impl Debug for ProdDefinition
source§impl Hash for ProdDefinition
impl Hash for ProdDefinition
source§impl PartialEq for ProdDefinition
impl PartialEq for ProdDefinition
source§fn eq(&self, other: &ProdDefinition) -> bool
fn eq(&self, other: &ProdDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProdDefinition
impl StructuralPartialEq for ProdDefinition
Auto Trait Implementations§
impl Freeze for ProdDefinition
impl RefUnwindSafe for ProdDefinition
impl Send for ProdDefinition
impl Sync for ProdDefinition
impl Unpin for ProdDefinition
impl UnwindSafe for ProdDefinition
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)