Trait mpl_core::DataBlob

source ·
pub trait DataBlob: CrateSerialize + CrateDeserialize {
    // Required methods
    fn get_initial_size() -> usize;
    fn get_size(&self) -> usize;
}
Expand description

A trait for generic blobs of data that have size.

Required Methods§

source

fn get_initial_size() -> usize

Get the size of an empty instance of the data blob.

source

fn get_size(&self) -> usize

Get the current size of the data blob.

Object Safety§

This trait is not object safe.

Implementors§