pub trait LweCiphertextVectorConversionEngine<Input, Output>: AbstractEnginewhere
Input: LweCiphertextVectorEntity,
Output: LweCiphertextVectorEntity,{
// Required methods
fn convert_lwe_ciphertext_vector(
&mut self,
input: &Input,
) -> Result<Output, LweCiphertextVectorConversionError<Self::EngineError>>;
unsafe fn convert_lwe_ciphertext_vector_unchecked(
&mut self,
input: &Input,
) -> Output;
}Expand description
Required Methods§
Sourcefn convert_lwe_ciphertext_vector(
&mut self,
input: &Input,
) -> Result<Output, LweCiphertextVectorConversionError<Self::EngineError>>
fn convert_lwe_ciphertext_vector( &mut self, input: &Input, ) -> Result<Output, LweCiphertextVectorConversionError<Self::EngineError>>
Converts a LWE ciphertext vector.
Sourceunsafe fn convert_lwe_ciphertext_vector_unchecked(
&mut self,
input: &Input,
) -> Output
unsafe fn convert_lwe_ciphertext_vector_unchecked( &mut self, input: &Input, ) -> Output
Unsafely converts a LWE ciphertext vector.
§Safety
For the general safety concerns regarding this operation, refer to the different variants
of LweCiphertextVectorConversionError. For safety concerns specific to an engine,
refer to the implementer safety section.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".