pub enum ObligationType {
Show 28 variants
Invariant,
Equivalence,
Bound,
Monotonicity,
Idempotency,
Linearity,
Symmetry,
Associativity,
Conservation,
Ordering,
Completeness,
Soundness,
Involution,
Determinism,
Roundtrip,
StateMachine,
Classification,
Independence,
Termination,
Safety,
Liveness,
Precondition,
Postcondition,
Frame,
LoopInvariant,
LoopVariant,
OldState,
Subcontract,
}Variants§
Invariant
Equivalence
Bound
Monotonicity
Idempotency
Linearity
Symmetry
Associativity
Conservation
Ordering
Completeness
Soundness
Involution
Determinism
Roundtrip
StateMachine
Classification
Independence
Termination
Safety
Memory/IO safety obligation (bounds checks, non-null, etc.). Legacy
pre-APR-MONO contracts (e.g. apr-cli-publish-extra-v1) used this
spelling; kept for back-compat alongside the 26 other types.
Liveness
Liveness property (eventually-happens). Same legacy contract
(apr-cli-publish-extra-v1) uses this for progress obligations;
kept for back-compat.
Precondition
Postcondition
Frame
LoopInvariant
LoopVariant
OldState
Subcontract
Trait Implementations§
Source§impl Clone for ObligationType
impl Clone for ObligationType
Source§fn clone(&self) -> ObligationType
fn clone(&self) -> ObligationType
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 moreSource§impl Debug for ObligationType
impl Debug for ObligationType
Source§impl Default for ObligationType
impl Default for ObligationType
Source§fn default() -> ObligationType
fn default() -> ObligationType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObligationType
impl<'de> Deserialize<'de> for ObligationType
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 Display for ObligationType
impl Display for ObligationType
Source§impl PartialEq for ObligationType
impl PartialEq for ObligationType
Source§fn eq(&self, other: &ObligationType) -> bool
fn eq(&self, other: &ObligationType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObligationType
impl Serialize for ObligationType
impl Copy for ObligationType
impl Eq for ObligationType
impl StructuralPartialEq for ObligationType
Auto Trait Implementations§
impl Freeze for ObligationType
impl RefUnwindSafe for ObligationType
impl Send for ObligationType
impl Sync for ObligationType
impl Unpin for ObligationType
impl UnsafeUnpin for ObligationType
impl UnwindSafe for ObligationType
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> 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.