#[non_exhaustive]pub enum LweCiphertextTrivialDecryptionError<EngineError: Error> {
Engine(EngineError),
}Expand description
An error used with the LweCiphertextTrivialDecryptionEngine trait.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Engine(EngineError)
Specific error to the implementing engine.
Trait Implementations§
Source§impl<EngineError: Clone + Error> Clone for LweCiphertextTrivialDecryptionError<EngineError>
impl<EngineError: Clone + Error> Clone for LweCiphertextTrivialDecryptionError<EngineError>
Source§fn clone(&self) -> LweCiphertextTrivialDecryptionError<EngineError>
fn clone(&self) -> LweCiphertextTrivialDecryptionError<EngineError>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<EngineError: Error> Display for LweCiphertextTrivialDecryptionError<EngineError>
impl<EngineError: Error> Display for LweCiphertextTrivialDecryptionError<EngineError>
Source§impl<EngineError: Error> Error for LweCiphertextTrivialDecryptionError<EngineError>
impl<EngineError: Error> Error for LweCiphertextTrivialDecryptionError<EngineError>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<EngineError: PartialEq + Error> PartialEq for LweCiphertextTrivialDecryptionError<EngineError>
impl<EngineError: PartialEq + Error> PartialEq for LweCiphertextTrivialDecryptionError<EngineError>
Source§fn eq(&self, other: &LweCiphertextTrivialDecryptionError<EngineError>) -> bool
fn eq(&self, other: &LweCiphertextTrivialDecryptionError<EngineError>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<EngineError: Eq + Error> Eq for LweCiphertextTrivialDecryptionError<EngineError>
impl<EngineError: Error> StructuralPartialEq for LweCiphertextTrivialDecryptionError<EngineError>
Auto Trait Implementations§
impl<EngineError> Freeze for LweCiphertextTrivialDecryptionError<EngineError>where
EngineError: Freeze,
impl<EngineError> RefUnwindSafe for LweCiphertextTrivialDecryptionError<EngineError>where
EngineError: RefUnwindSafe,
impl<EngineError> Send for LweCiphertextTrivialDecryptionError<EngineError>where
EngineError: Send,
impl<EngineError> Sync for LweCiphertextTrivialDecryptionError<EngineError>where
EngineError: Sync,
impl<EngineError> Unpin for LweCiphertextTrivialDecryptionError<EngineError>where
EngineError: Unpin,
impl<EngineError> UnwindSafe for LweCiphertextTrivialDecryptionError<EngineError>where
EngineError: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more