Type Alias SlotBody

Source
pub type SlotBody = HashMap<u16, Vec<u8>>;
Expand description

A slot body is a map of slot indices to data.

Aliased Type§

struct SlotBody { /* private fields */ }

Trait Implementations§

Source§

impl Serializable for SlotBody

Source§

fn size(&self) -> usize

Returns the size of the serialized data in bytes.

Source§

fn get_bytes(&self) -> Vec<u8>

Serializes the data into a vector of bytes.

Source§

fn from_bytes( data: &[u8], _: Option<SerializationInfo>, ) -> Result<Self, SerializationError>
where Self: Sized,

Deserializes the data from a vector of bytes.