pub trait CleartextVectorRetrievalEngine<CleartextVector, Value>: AbstractEnginewhere
    CleartextVector: CleartextVectorEntity,
{ fn retrieve_cleartext_vector(
        &mut self,
        cleartext: &CleartextVector
    ) -> Result<Vec<Value>, CleartextVectorRetrievalError<Self::EngineError>>; unsafe fn retrieve_cleartext_vector_unchecked(
        &mut self,
        cleartext: &CleartextVector
    ) -> Vec<Value>; }
Expand description

A trait for engines retrieving arbitrary values from cleartext vectors.

Semantics

This pure operation generates a vec of arbitrary values from the input cleartext vector. 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

Retrieves arbitrary values from a cleartext vector.

Unsafely retrieves arbitrary values from a cleartext vector.

Safety

For the general safety concerns regarding this operation, refer to the different variants of CleartextVectorRetrievalError. For safety concerns specific to an engine, refer to the implementer safety section.

Implementors