#[non_exhaustive]pub enum Verification {
ExhaustiveU8,
ExhaustiveU16,
WitnessedU32 {
seed: u64,
count: u64,
},
ExhaustiveFloat {
typ: FloatType,
},
}Expand description
Evidence attached to a declared law in the frozen data contract.
Example: Verification::WitnessedU32 { seed: 7, count: 1024 } records a
deterministic witness run for a full-width integer law.
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.
ExhaustiveU8
Exhaustively verified over the u8 input domain.
ExhaustiveU16
Exhaustively verified over the u16 input domain.
WitnessedU32
Witnessed over u32 using a deterministic seed and count.
Fields
ExhaustiveFloat
Exhaustively verified for a restricted floating-point type.
Implementations§
Source§impl Verification
impl Verification
Sourcepub fn witness_count(&self) -> Option<u64>
pub fn witness_count(&self) -> Option<u64>
Return the witness count for witnessed variants, or None for
exhaustive variants.
Trait Implementations§
Source§impl Clone for Verification
impl Clone for Verification
Source§fn clone(&self) -> Verification
fn clone(&self) -> Verification
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 Debug for Verification
impl Debug for Verification
Source§impl PartialEq for Verification
impl PartialEq for Verification
impl Eq for Verification
impl StructuralPartialEq for Verification
Auto Trait Implementations§
impl Freeze for Verification
impl RefUnwindSafe for Verification
impl Send for Verification
impl Sync for Verification
impl Unpin for Verification
impl UnsafeUnpin for Verification
impl UnwindSafe for Verification
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