pub trait LweKeyswitchKeyConsumingRetrievalEngine<KeyswitchKey, Container>: AbstractEnginewhere
    KeyswitchKey: LweKeyswitchKeyEntity,
{ fn consume_retrieve_lwe_keyswitch_key(
        &mut self,
        keyswitch_key: KeyswitchKey
    ) -> Result<Container, LweKeyswitchKeyConsumingRetrievalError<Self::EngineError>>; unsafe fn consume_retrieve_lwe_keyswitch_key_unchecked(
        &mut self,
        keyswitch_key: KeyswitchKey
    ) -> Container; }
Expand description

A trait for engines retrieving the content of the container from an LWE keyswitch key consuming it in the process.

Semantics

This pure operation retrieves the content of the container from the input LWE keyswitch key consuming it in the process.

Required Methods

Retrieves the content of the container from an LWE keyswitch key, consuming it in the process.

Unsafely retrieves the content of the container from an LWE keyswitch key, consuming it in the process.

Safety

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

Implementors