pub trait WriteGrib2MessageIterL1 {
type S2<'a>: WriteGrib2LocalUse
where Self: 'a;
type Item<'a>: WriteGrib2MessageIterL2
where Self: 'a;
type Iter<'a>: Iterator<Item = Self::Item<'a>>
where Self: 'a;
// Required methods
fn section2(&self) -> Option<&Self::S2<'_>>;
fn iter(&self) -> Self::Iter<'_>;
// 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 L1 iterator in a GRIB2 message.
This trait works in conjunction with WriteGrib2Message,
WriteGrib2MessageIterL2, and WriteGrib2MessageIterL3 to write the
message.
Required Associated Types§
type S2<'a>: WriteGrib2LocalUse where Self: 'a
type Item<'a>: WriteGrib2MessageIterL2 where Self: 'a
type Iter<'a>: Iterator<Item = Self::Item<'a>> where Self: 'a
Required Methods§
Provided Methods§
fn num_octets(&self) -> usize
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".