pub struct Message<'a> { /* private fields */ }Expand description
A single logical GRIB field.
Implementations§
Source§impl<'a> Message<'a>
impl<'a> Message<'a>
pub fn edition(&self) -> u8
pub fn index(&self) -> usize
pub fn metadata(&self) -> &MessageMetadata
pub fn reference_time(&self) -> &ReferenceTime
pub fn parameter(&self) -> &Parameter
pub fn center_id(&self) -> u16
pub fn subcenter_id(&self) -> u16
pub fn identification(&self) -> Option<&Identification>
pub fn product_definition(&self) -> Option<&ProductDefinition>
pub fn grib1_product_definition(&self) -> Option<&ProductDefinition>
pub fn grid_definition(&self) -> &GridDefinition
pub fn parameter_name(&self) -> &'static str
pub fn parameter_description(&self) -> &'static str
pub fn forecast_time_unit(&self) -> Option<u8>
pub fn forecast_time(&self) -> Option<u32>
pub fn valid_time(&self) -> Option<ReferenceTime>
pub fn grid_shape(&self) -> (usize, usize)
pub fn latitudes(&self) -> Option<Vec<f64>>
pub fn longitudes(&self) -> Option<Vec<f64>>
pub fn read_flat_data_as_f64(&self) -> Result<Vec<f64>>
pub fn read_data_as_f64(&self) -> Result<ArrayD<f64>>
pub fn raw_bytes(&self) -> &[u8] ⓘ
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnsafeUnpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
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> 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