Trait linera_sdk::FromBcsBytes

source ·
pub trait FromBcsBytes: Sized {
    // Required method
    fn from_bcs_bytes(bytes: &[u8]) -> Result<Self, Error>;
}
Expand description

Extension trait to deserialize a type from a vector of bytes using bcs.

Required Methods§

source

fn from_bcs_bytes(bytes: &[u8]) -> Result<Self, Error>

Deserializes itself from a vector of bytes using bcs.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> FromBcsBytes for T