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