pub enum EnforcementLevel {
Basic,
Standard,
Strict,
Proven,
}Expand description
Per-contract enforcement level (gradual enforcement, Section 17).
Variants§
Basic
Schema valid, has equations.
Standard
- falsification tests + Kani harnesses.
Strict
- all bindings implemented +
#[contract]annotations.
Proven
- Lean 4 proved (no sorry).
Trait Implementations§
Source§impl Clone for EnforcementLevel
impl Clone for EnforcementLevel
Source§fn clone(&self) -> EnforcementLevel
fn clone(&self) -> EnforcementLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EnforcementLevel
Source§impl Debug for EnforcementLevel
impl Debug for EnforcementLevel
Source§impl<'de> Deserialize<'de> for EnforcementLevel
impl<'de> Deserialize<'de> for EnforcementLevel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnforcementLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnforcementLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EnforcementLevel
Source§impl Ord for EnforcementLevel
impl Ord for EnforcementLevel
Source§fn cmp(&self, other: &EnforcementLevel) -> Ordering
fn cmp(&self, other: &EnforcementLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EnforcementLevel
impl PartialEq for EnforcementLevel
Source§impl PartialOrd for EnforcementLevel
impl PartialOrd for EnforcementLevel
Source§impl Serialize for EnforcementLevel
impl Serialize for EnforcementLevel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EnforcementLevel
Auto Trait Implementations§
impl Freeze for EnforcementLevel
impl RefUnwindSafe for EnforcementLevel
impl Send for EnforcementLevel
impl Sync for EnforcementLevel
impl Unpin for EnforcementLevel
impl UnsafeUnpin for EnforcementLevel
impl UnwindSafe for EnforcementLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.