pub trait PlaintextVectorDecodingEngine<EncoderVector, PlaintextVector, CleartextVector>: AbstractEnginewhere
EncoderVector: EncoderVectorEntity,
PlaintextVector: PlaintextVectorEntity,
CleartextVector: CleartextVectorEntity,{
// Required methods
fn decode_plaintext_vector(
&mut self,
encoder: &EncoderVector,
input: &PlaintextVector,
) -> Result<CleartextVector, PlaintextVectorDecodingError<Self::EngineError>>;
unsafe fn decode_plaintext_vector_unchecked(
&mut self,
encoder: &EncoderVector,
input: &PlaintextVector,
) -> CleartextVector;
}Expand description
Required Methods§
Sourcefn decode_plaintext_vector(
&mut self,
encoder: &EncoderVector,
input: &PlaintextVector,
) -> Result<CleartextVector, PlaintextVectorDecodingError<Self::EngineError>>
fn decode_plaintext_vector( &mut self, encoder: &EncoderVector, input: &PlaintextVector, ) -> Result<CleartextVector, PlaintextVectorDecodingError<Self::EngineError>>
Decodes a plaintext vector.
Sourceunsafe fn decode_plaintext_vector_unchecked(
&mut self,
encoder: &EncoderVector,
input: &PlaintextVector,
) -> CleartextVector
unsafe fn decode_plaintext_vector_unchecked( &mut self, encoder: &EncoderVector, input: &PlaintextVector, ) -> CleartextVector
Unsafely decodes a plaintext vector.
§Safety
For the general safety concerns regarding this operation, refer to the different variants
of PlaintextVectorDecodingError. For safety concerns specific to an engine, refer to
the implementer safety section.
Implementors§
impl PlaintextVectorDecodingEngine<FloatEncoderVector, PlaintextVector32, CleartextVectorF64> for DefaultEngine
§Description:
Implementation of PlaintextVectorDecodingEngine for DefaultEngine that decodes 32 bits
integers to 64 bits floating point numbers.
impl PlaintextVectorDecodingEngine<FloatEncoderVector, PlaintextVector64, CleartextVectorF64> for DefaultEngine
§Description:
Implementation of PlaintextVectorDecodingEngine for DefaultEngine that decodes 64 bits
integers to 64 bits floating point numbers.