DecodeCompressed

Trait DecodeCompressed 

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

Extension trait for generic decoding from compressed data

Required Methods§

Source

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

Decompress and decode the 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§