Skip to main content

MultiProductGrib2Message

Struct MultiProductGrib2Message 

Source
pub struct MultiProductGrib2Message<'d, I, L, G, P> { /* private fields */ }
Expand description

A writer for GRIB2 messages containing multiple submessages that share a grid.

Implementations§

Source§

impl<'d, I, L, G, P> MultiProductGrib2Message<'d, I, L, G, P>

Source

pub fn new( discipline: u8, ident: I, local_use: Option<L>, grid: G, product_values: Vec<(P, GpvEncoder<'d>)>, ) -> Self

Trait Implementations§

Source§

impl<'d, I, L, G, P> WriteGrib2Message for MultiProductGrib2Message<'d, I, L, G, P>

Source§

type S1<'a> = I where Self: 'a

Source§

type Item<'a> = (&'a Option<L>, &'a G, &'a Vec<(P, GpvEncoder<'d>)>) where Self: 'a

Source§

type Iter<'a> = Once<(&'a Option<L>, &'a G, &'a Vec<(P, GpvEncoder<'d>)>)> where Self: 'a

Source§

fn discipline(&self) -> u8

Source§

fn section1(&self) -> &Self::S1<'_>

Source§

fn iter(&self) -> Self::Iter<'_>

Source§

fn reserved(&self) -> [u8; 2]

Source§

fn num_octets(&self) -> usize

Source§

fn write(&self, buf: &mut [u8]) -> Result<usize, &'static str>

Auto Trait Implementations§

§

impl<'d, I, L, G, P> !RefUnwindSafe for MultiProductGrib2Message<'d, I, L, G, P>

§

impl<'d, I, L, G, P> !Sync for MultiProductGrib2Message<'d, I, L, G, P>

§

impl<'d, I, L, G, P> Freeze for MultiProductGrib2Message<'d, I, L, G, P>
where I: Freeze, G: Freeze, L: Freeze,

§

impl<'d, I, L, G, P> Send for MultiProductGrib2Message<'d, I, L, G, P>
where I: Send, G: Send, L: Send, P: Send,

§

impl<'d, I, L, G, P> Unpin for MultiProductGrib2Message<'d, I, L, G, P>
where I: Unpin, G: Unpin, L: Unpin, P: Unpin,

§

impl<'d, I, L, G, P> UnsafeUnpin for MultiProductGrib2Message<'d, I, L, G, P>

§

impl<'d, I, L, G, P> UnwindSafe for MultiProductGrib2Message<'d, I, L, G, P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

§

fn simd_from(_simd: S, value: T) -> T

§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

§

fn simd_into(self, simd: S) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.