Trait SerializeDeserializeWithContext

Source
pub trait SerializeDeserializeWithContext {
    // Provided methods
    fn deserialize_with_context(bytes: &[u8]) -> Result<Self>
       where Self: for<'de> Deserialize<'de> + Decode<()> { ... }
    fn serialize_with_context(input: &Self) -> Result<Vec<u8>>
       where Self: Serialize + Debug + Encode { ... }
}

Provided Methods§

Source

fn deserialize_with_context(bytes: &[u8]) -> Result<Self>
where Self: for<'de> Deserialize<'de> + Decode<()>,

Source

fn serialize_with_context(input: &Self) -> Result<Vec<u8>>
where Self: Serialize + Debug + Encode,

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 SerializeDeserializeWithContext for (AddressRocksdb, BlockNumberRocksdb)

Source§

impl SerializeDeserializeWithContext for (AddressRocksdb, SlotIndexRocksdb)

Source§

impl SerializeDeserializeWithContext for (AddressRocksdb, SlotIndexRocksdb, BlockNumberRocksdb)

Implementors§