Trait concrete_core::specification::engines::GlweCiphertextVectorConsumingRetrievalEngine
source · [−]pub trait GlweCiphertextVectorConsumingRetrievalEngine<CiphertextVector, Container>: AbstractEnginewhere
CiphertextVector: GlweCiphertextVectorEntity,{
fn consume_retrieve_glwe_ciphertext_vector(
&mut self,
ciphertext_vector: CiphertextVector
) -> Result<Container, GlweCiphertextVectorConsumingRetrievalError<Self::EngineError>>;
unsafe fn consume_retrieve_glwe_ciphertext_vector_unchecked(
&mut self,
ciphertext_vector: CiphertextVector
) -> Container;
}
Expand description
Required Methods
sourcefn consume_retrieve_glwe_ciphertext_vector(
&mut self,
ciphertext_vector: CiphertextVector
) -> Result<Container, GlweCiphertextVectorConsumingRetrievalError<Self::EngineError>>
fn consume_retrieve_glwe_ciphertext_vector(
&mut self,
ciphertext_vector: CiphertextVector
) -> Result<Container, GlweCiphertextVectorConsumingRetrievalError<Self::EngineError>>
Retrieves the content of the container from a GLWE ciphertext vector, consuming it in the process.
sourceunsafe fn consume_retrieve_glwe_ciphertext_vector_unchecked(
&mut self,
ciphertext_vector: CiphertextVector
) -> Container
unsafe fn consume_retrieve_glwe_ciphertext_vector_unchecked(
&mut self,
ciphertext_vector: CiphertextVector
) -> Container
Unsafely retrieves the content of the container from a GLWE ciphertext vector, consuming it in the process.
Safety
For the general safety concerns regarding this operation, refer to the different variants
of GlweCiphertextVectorConsumingRetrievalError
. For safety concerns specific to an
engine, refer to the implementer safety section.
Implementors
impl GlweCiphertextVectorConsumingRetrievalEngine<GlweCiphertextVector32, Vec<u32, Global>> for DefaultEngine
Description:
Implementation of GlweCiphertextVectorConsumingRetrievalEngine
for DefaultEngine
that
returns the underlying slice of a GlweCiphertextVector32
consuming it in the process
impl GlweCiphertextVectorConsumingRetrievalEngine<GlweCiphertextVector64, Vec<u64, Global>> for DefaultEngine
Description:
Implementation of GlweCiphertextVectorConsumingRetrievalEngine
for DefaultEngine
that
returns the underlying slice of a GlweCiphertextVector64
consuming it in the process
impl<'data> GlweCiphertextVectorConsumingRetrievalEngine<GlweCiphertextVectorMutView32<'data>, &'data mut [u32]> for DefaultEngine
Description:
Implementation of GlweCiphertextVectorConsumingRetrievalEngine
for DefaultEngine
that
returns
the underlying slice of a GlweCiphertextVectorMutView32
consuming it in the process
impl<'data> GlweCiphertextVectorConsumingRetrievalEngine<GlweCiphertextVectorMutView64<'data>, &'data mut [u64]> for DefaultEngine
Description:
Implementation of GlweCiphertextVectorConsumingRetrievalEngine
for DefaultEngine
that
returns
the underlying slice of a GlweCiphertextVectorMutView64
consuming it in the process
impl<'data> GlweCiphertextVectorConsumingRetrievalEngine<GlweCiphertextVectorView32<'data>, &'data [u32]> for DefaultEngine
Description:
Implementation of GlweCiphertextVectorConsumingRetrievalEngine
for DefaultEngine
that
returns the underlying slice of a GlweCiphertextVectorView32
consuming it in the process
impl<'data> GlweCiphertextVectorConsumingRetrievalEngine<GlweCiphertextVectorView64<'data>, &'data [u64]> for DefaultEngine
Description:
Implementation of GlweCiphertextVectorConsumingRetrievalEngine
for DefaultEngine
that
returns the underlying slice of a GlweCiphertextVectorView64
consuming it in the process