pub trait DataType {
const MODE: DataMode;
const LENGTH: usize = 0;
// Provided methods
fn push_fixed_data(&self, encoder_fixed: &mut Vec<u8>, endian: &Endian) { ... }
fn push_var1_data(
&self,
var_length: &mut Vec<u32>,
data: &mut Vec<u8>,
endian: &Endian,
) { ... }
}Expand description
Defines how a type contributes fixed or variable data to an encoder.
Required Associated Constants§
Provided Associated Constants§
Provided Methods§
Sourcefn push_fixed_data(&self, encoder_fixed: &mut Vec<u8>, endian: &Endian)
fn push_fixed_data(&self, encoder_fixed: &mut Vec<u8>, endian: &Endian)
Push fixed-width bytes into the fixed region.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.