Trait ba2::CompressableFrom
source · pub trait CompressableFrom<T>: Sealed {
// Required methods
fn from_compressed(value: T, decompressed_len: usize) -> Self;
fn from_decompressed(value: T) -> Self;
}
Expand description
A trait that creates an optionally compressed container using the given value.
Required Methods§
sourcefn from_compressed(value: T, decompressed_len: usize) -> Self
fn from_compressed(value: T, decompressed_len: usize) -> Self
Makes a compressed instance of Self
using the given data.
sourcefn from_decompressed(value: T) -> Self
fn from_decompressed(value: T) -> Self
Makes a decompressed instance of Self
using the given data.
Object Safety§
This trait is not object safe.