Skip to main content

WriteGrib2MessageIterL3

Trait WriteGrib2MessageIterL3 

Source
pub trait WriteGrib2MessageIterL3 {
    type S4<'a>: WriteGrib2ProductDef
       where Self: 'a;
    type SD<'a>: WriteGrib2PointValues
       where Self: 'a;

    // Required methods
    fn section4(&self) -> &Self::S4<'_>;
    fn data_sections(&self) -> &Self::SD<'_>;

    // Provided methods
    fn num_octets(&self) -> usize { ... }
    fn write(&self, buf: &mut [u8]) -> Result<usize, &'static str> { ... }
}
Expand description

A functionality to write elements of the L3 iterator in a GRIB2 message. This trait works in conjunction with WriteGrib2Message, WriteGrib2MessageIterL1, and WriteGrib2MessageIterL2 to write the message.

Required Associated Types§

Source

type S4<'a>: WriteGrib2ProductDef where Self: 'a

Source

type SD<'a>: WriteGrib2PointValues where Self: 'a

Required Methods§

Source

fn section4(&self) -> &Self::S4<'_>

Source

fn data_sections(&self) -> &Self::SD<'_>

Provided Methods§

Source

fn num_octets(&self) -> usize

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, 'd, P> WriteGrib2MessageIterL3 for (&'a P, &'a GpvEncoder<'d>)

Source§

type S4<'s> = P where Self: 's

Source§

type SD<'s> = GpvEncoder<'d> where Self: 's

Source§

fn section4(&self) -> &Self::S4<'_>

Source§

fn data_sections(&self) -> &Self::SD<'_>

Source§

impl<'d, P> WriteGrib2MessageIterL3 for &(P, GpvEncoder<'d>)

Source§

type S4<'s> = P where Self: 's

Source§

type SD<'s> = GpvEncoder<'d> where Self: 's

Source§

fn section4(&self) -> &Self::S4<'_>

Source§

fn data_sections(&self) -> &Self::SD<'_>

Implementors§