Trait StateRootWithAuxInfoToFromRlpBytes

Source
pub trait StateRootWithAuxInfoToFromRlpBytes {
    // Required methods
    fn to_rlp_bytes(&self) -> Vec<u8> ;
    fn from_rlp_bytes(bytes: &[u8]) -> Result<StateRootWithAuxInfo>;
}
Expand description

Only used by storage benchmark due to incompatibility of rlp crate version.

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.

Implementations on Foreign Types§

Source§

impl StateRootWithAuxInfoToFromRlpBytes for StateRootWithAuxInfo

Only used by storage benchmark due to incompatibility of rlp crate version.

Source§

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

Source§

fn from_rlp_bytes(bytes: &[u8]) -> Result<Self>

Implementors§