pub trait PlaintextVectorDiscardingRetrievalEngine<PlaintextVector, Value>: AbstractEnginewhere
PlaintextVector: PlaintextVectorEntity,{
fn discard_retrieve_plaintext_vector(
&mut self,
output: &mut [Value],
input: &PlaintextVector
) -> Result<(), PlaintextVectorDiscardingRetrievalError<Self::EngineError>>;
unsafe fn discard_retrieve_plaintext_vector_unchecked(
&mut self,
output: &mut [Value],
input: &PlaintextVector
);
}
Expand description
A trait for engines retrieving (discarding) arbitrary values from plaintext vectors.
Semantics
This discarding operation fills the output
arbitrary value slice
with the element-wise retrieval of the input
plaintext vector values. By arbitrary here, we
mean that Value
can be any type that suits the backend implementor (an integer, a struct
wrapping integers, a struct wrapping foreign data or any other
thing).
Formal Definition
Required Methods
sourcefn discard_retrieve_plaintext_vector(
&mut self,
output: &mut [Value],
input: &PlaintextVector
) -> Result<(), PlaintextVectorDiscardingRetrievalError<Self::EngineError>>
fn discard_retrieve_plaintext_vector(
&mut self,
output: &mut [Value],
input: &PlaintextVector
) -> Result<(), PlaintextVectorDiscardingRetrievalError<Self::EngineError>>
Retrieves arbitrary values from a plaintext vector.
sourceunsafe fn discard_retrieve_plaintext_vector_unchecked(
&mut self,
output: &mut [Value],
input: &PlaintextVector
)
unsafe fn discard_retrieve_plaintext_vector_unchecked(
&mut self,
output: &mut [Value],
input: &PlaintextVector
)
Unsafely retrieves arbitrary values from a plaintext vector.
Safety
For the general safety concerns regarding this operation, refer to the different variants
of PlaintextVectorDiscardingRetrievalError
. For safety concerns specific to an engine,
refer to the implementer safety section.
Implementors
impl PlaintextVectorDiscardingRetrievalEngine<PlaintextVector32, u32> for DefaultEngine
Description:
Implementation of PlaintextVectorDiscardingRetrievalEngine
for DefaultEngine
that
operates on 32 bits integers.
impl PlaintextVectorDiscardingRetrievalEngine<PlaintextVector64, u64> for DefaultEngine
Description:
Implementation of PlaintextVectorDiscardingRetrievalEngine
for DefaultEngine
that
operates on 64 bits integers.