pub trait WriteGrib2Message {
type S1<'a>: WriteGrib2Ident
where Self: 'a;
type Item<'a>: WriteGrib2MessageIterL1
where Self: 'a;
type Iter<'a>: Iterator<Item = Self::Item<'a>>
where Self: 'a;
// Required methods
fn discipline(&self) -> u8;
fn section1(&self) -> &Self::S1<'_>;
fn iter(&self) -> Self::Iter<'_>;
// Provided methods
fn reserved(&self) -> [u8; 2] { ... }
fn num_octets(&self) -> usize { ... }
fn write(&self, buf: &mut [u8]) -> Result<usize, &'static str> { ... }
}Expand description
A functionality to write an entire GRIB2 message. This trait works in
conjunction with WriteGrib2MessageIterL1, WriteGrib2MessageIterL2,
and WriteGrib2MessageIterL3 to write the message.
Required Associated Types§
type S1<'a>: WriteGrib2Ident where Self: 'a
type Item<'a>: WriteGrib2MessageIterL1 where Self: 'a
type Iter<'a>: Iterator<Item = Self::Item<'a>> where Self: 'a
Required Methods§
fn discipline(&self) -> u8
fn section1(&self) -> &Self::S1<'_>
fn iter(&self) -> Self::Iter<'_>
Provided Methods§
fn reserved(&self) -> [u8; 2]
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".