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§

source

const NAME: &'static str

Name of parameters.

source

const OFFSET_RANGES: &'static [Range<usize>]

List of offset ranges for parameters.

Required Methods§

source

fn serialize_params(params: &T, raw: &mut [u8]) -> Result<(), String>

Serialize parameters.

source

fn deserialize_params(params: &mut T, raw: &[u8]) -> Result<(), String>

Deserialize parameters.

Object Safety§

This trait is not object safe.

Implementors§