pub trait LexiconParametersSerdes<T> {
const NAME: &'static str;
const OFFSET_RANGES: &'static [Range<usize>];
// Required methods
fn serialize_params(params: &T, raw: &mut [u8]) -> Result<(), String>;
fn deserialize_params(params: &mut T, raw: &[u8]) -> Result<(), String>;
}
Expand description
Serialize and deserialize parameters.
Required Associated Constants§
Sourceconst OFFSET_RANGES: &'static [Range<usize>]
const OFFSET_RANGES: &'static [Range<usize>]
List of offset ranges for parameters.
Required Methods§
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.