Trait mesh::payload::PackedDecode
source · pub trait PackedDecode<'a, T, C> {
// Required methods
fn read_packed(
&self,
data: &mut C,
reader: &mut PackedReader<'a>,
) -> Result<(), Error>;
fn must_pack(&self) -> bool;
}
Expand description
Methods for decoding a packed field.
Required Methods§
sourcefn read_packed(
&self,
data: &mut C,
reader: &mut PackedReader<'a>,
) -> Result<(), Error>
fn read_packed( &self, data: &mut C, reader: &mut PackedReader<'a>, ) -> Result<(), Error>
Reads from the packed format into data
.