pub trait PlaintextDiscardingConversionEngine<Input, Output>: AbstractEnginewhere
Input: PlaintextEntity,
Output: PlaintextEntity,{
fn discard_convert_plaintext(
&mut self,
output: &mut Output,
input: &Input
) -> Result<(), PlaintextDiscardingConversionError<Self::EngineError>>;
unsafe fn discard_convert_plaintext_unchecked(
&mut self,
output: &mut Output,
input: &Input
);
}
Expand description
A trait for engines converting (discarding) plaintexts .
Semantics
This discarding operation fills the output
plaintext with the
conversion of the input
plaintext to a type with a different representation (for instance from
cpu to gpu memory).
Formal Definition
Required Methods§
sourcefn discard_convert_plaintext(
&mut self,
output: &mut Output,
input: &Input
) -> Result<(), PlaintextDiscardingConversionError<Self::EngineError>>
fn discard_convert_plaintext(
&mut self,
output: &mut Output,
input: &Input
) -> Result<(), PlaintextDiscardingConversionError<Self::EngineError>>
Converts a plaintext .
sourceunsafe fn discard_convert_plaintext_unchecked(
&mut self,
output: &mut Output,
input: &Input
)
unsafe fn discard_convert_plaintext_unchecked(
&mut self,
output: &mut Output,
input: &Input
)
Unsafely converts a plaintext .
Safety
For the general safety concerns regarding this operation, refer to the different variants
of PlaintextDiscardingConversionError
. For safety concerns specific to an engine,
refer to the implementer safety section.