pub trait Zfp<T> {
// Required methods
fn zfp_compress(self, tolerance: f64) -> Result<Vec<u8>>;
fn zfp_compress_with_header(self, tolerance: f64) -> Result<Vec<u8>>;
fn from_zfp_compressed_bytes(
compressed_bytes: Vec<u8>,
shape: &[usize],
tolerance: f64,
) -> Result<Box<Self>>;
fn from_zfp_compressed_bytes_with_header(
compressed_bytes: Vec<u8>,
) -> Result<Box<Self>>;
}
Required Methods§
fn zfp_compress(self, tolerance: f64) -> Result<Vec<u8>>
fn zfp_compress_with_header(self, tolerance: f64) -> Result<Vec<u8>>
fn from_zfp_compressed_bytes( compressed_bytes: Vec<u8>, shape: &[usize], tolerance: f64, ) -> Result<Box<Self>>
fn from_zfp_compressed_bytes_with_header( compressed_bytes: Vec<u8>, ) -> Result<Box<Self>>
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.