pub trait VectorCodec {
type EncodedBlock;
type Error;
// Required methods
fn encode_block(
&self,
input: &[f32],
) -> Result<Self::EncodedBlock, Self::Error>;
fn decode_block(
&self,
block: &Self::EncodedBlock,
out: &mut [f32],
) -> Result<(), Self::Error>;
}Required Associated Types§
type EncodedBlock
type Error
Required Methods§
fn encode_block(&self, input: &[f32]) -> Result<Self::EncodedBlock, Self::Error>
fn decode_block( &self, block: &Self::EncodedBlock, out: &mut [f32], ) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".