pub enum InvariantClass {
Structural,
Semantic,
Acceptance,
}Expand description
The class of an invariant determines when it’s checked and how violations are handled.
Variants§
Structural
Checked on every merge. Violation causes immediate failure. Examples: schema validity, type correctness, forbidden combinations.
Semantic
Checked at the end of each cycle. Violation blocks convergence. Examples: “no strategy violates brand safety”.
Acceptance
Checked when convergence is claimed. Violation rejects results. Examples: “at least two viable strategies exist”.
Trait Implementations§
Source§impl Clone for InvariantClass
impl Clone for InvariantClass
Source§fn clone(&self) -> InvariantClass
fn clone(&self) -> InvariantClass
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 InvariantClass
impl Debug for InvariantClass
Source§impl<'de> Deserialize<'de> for InvariantClass
impl<'de> Deserialize<'de> for InvariantClass
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InvariantClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InvariantClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for InvariantClass
impl Hash for InvariantClass
Source§impl PartialEq for InvariantClass
impl PartialEq for InvariantClass
Source§impl Serialize for InvariantClass
impl Serialize for InvariantClass
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 Copy for InvariantClass
impl Eq for InvariantClass
impl StructuralPartialEq for InvariantClass
Auto Trait Implementations§
impl Freeze for InvariantClass
impl RefUnwindSafe for InvariantClass
impl Send for InvariantClass
impl Sync for InvariantClass
impl Unpin for InvariantClass
impl UnsafeUnpin for InvariantClass
impl UnwindSafe for InvariantClass
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.