DecodeCompressedSsz

Trait DecodeCompressedSsz 

Source
pub trait DecodeCompressedSsz {
    // Required method
    fn decode<T: Decode>(&self) -> Result<T, E2sError>;
}
Expand description

Extension trait for generic decoding from compressed ssz data

Required Methods§

Source

fn decode<T: Decode>(&self) -> Result<T, E2sError>

Decompress and decode the SSZ data into the given type

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.

Implementors§