pub struct SingleGrib2Message<'d, I, L, G, P> { /* private fields */ }Expand description
A writer for GRIB2 messages that contain only one submessage.
Implementations§
Source§impl<'d, I, L, G, P> SingleGrib2Message<'d, I, L, G, P>
impl<'d, I, L, G, P> SingleGrib2Message<'d, I, L, G, P>
pub fn new( discipline: u8, ident: I, local_use: Option<L>, grid: G, product: P, values: GpvEncoder<'d>, ) -> Self
Trait Implementations§
Source§impl<'d, I, L, G, P> WriteGrib2Message for SingleGrib2Message<'d, I, L, G, P>
impl<'d, I, L, G, P> WriteGrib2Message for SingleGrib2Message<'d, I, L, G, P>
type S1<'a> = I where Self: 'a
type Item<'a> = (&'a Option<L>, &'a G, &'a P, &'a GpvEncoder<'d>) where Self: 'a
type Iter<'a> = Once<(&'a Option<L>, &'a G, &'a P, &'a GpvEncoder<'d>)> where Self: 'a
fn discipline(&self) -> u8
fn section1(&self) -> &Self::S1<'_>
fn iter(&self) -> Self::Iter<'_>
fn reserved(&self) -> [u8; 2]
fn num_octets(&self) -> usize
fn write(&self, buf: &mut [u8]) -> Result<usize, &'static str>
Auto Trait Implementations§
impl<'d, I, L, G, P> !Freeze for SingleGrib2Message<'d, I, L, G, P>
impl<'d, I, L, G, P> !RefUnwindSafe for SingleGrib2Message<'d, I, L, G, P>
impl<'d, I, L, G, P> !Sync for SingleGrib2Message<'d, I, L, G, P>
impl<'d, I, L, G, P> Send for SingleGrib2Message<'d, I, L, G, P>
impl<'d, I, L, G, P> Unpin for SingleGrib2Message<'d, I, L, G, P>
impl<'d, I, L, G, P> UnsafeUnpin for SingleGrib2Message<'d, I, L, G, P>
impl<'d, I, L, G, P> UnwindSafe for SingleGrib2Message<'d, I, L, G, P>
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