Enum wycheproof::TestResult
source · pub enum TestResult {
Valid,
Invalid,
Acceptable,
}
Expand description
The expected result of a Wycheproof test
Variants§
Valid
The test is expected to pass
Invalid
The test is expected to fail
Acceptable
The test is allowed to pass but may reasonably fail for policy reasons (eg for a valid signature when the hash function used is too weak)
Implementations§
Trait Implementations§
source§impl Clone for TestResult
impl Clone for TestResult
source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
Returns a copy 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 Debug for TestResult
impl Debug for TestResult
source§impl<'de> Deserialize<'de> for TestResult
impl<'de> Deserialize<'de> for TestResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for TestResult
impl Hash for TestResult
source§impl PartialEq<TestResult> for TestResult
impl PartialEq<TestResult> for TestResult
source§fn eq(&self, other: &TestResult) -> bool
fn eq(&self, other: &TestResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TestResult
impl Eq for TestResult
impl StructuralEq for TestResult
impl StructuralPartialEq for TestResult
Auto Trait Implementations§
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnwindSafe for TestResult
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