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
Required Methods
sourcefn consume_retrieve_lwe_keyswitch_key(
&mut self,
keyswitch_key: KeyswitchKey
) -> Result<Container, LweKeyswitchKeyConsumingRetrievalError<Self::EngineError>>
fn consume_retrieve_lwe_keyswitch_key(
&mut self,
keyswitch_key: KeyswitchKey
) -> Result<Container, LweKeyswitchKeyConsumingRetrievalError<Self::EngineError>>
Retrieves the content of the container from an LWE keyswitch key, consuming it in the process.
sourceunsafe fn consume_retrieve_lwe_keyswitch_key_unchecked(
&mut self,
keyswitch_key: KeyswitchKey
) -> Container
unsafe fn consume_retrieve_lwe_keyswitch_key_unchecked(
&mut self,
keyswitch_key: KeyswitchKey
) -> Container
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.