pub struct BooleanPCard {
pub id: String,
pub phase: InvariantPhase,
pub expression: String,
pub guarded_uri_pattern: String,
pub coeffects: CordisCoeffects,
}Expand description
Boolean PCard: Specialization of PCard returning Bool (X -> 2).
Fields§
§id: String§phase: InvariantPhase§expression: StringFormal invariant predicate logic (CEL or pure AST).
guarded_uri_pattern: StringTarget MCard URI pattern being guarded.
coeffects: CordisCoeffectsCoeffects needed to evaluate the predicate.
Implementations§
Source§impl BooleanPCard
impl BooleanPCard
pub fn is_precondition(&self) -> bool
pub fn is_postcondition(&self) -> bool
Trait Implementations§
Source§impl Clone for BooleanPCard
impl Clone for BooleanPCard
Source§impl Debug for BooleanPCard
impl Debug for BooleanPCard
Source§impl<'de> Deserialize<'de> for BooleanPCard
impl<'de> Deserialize<'de> for BooleanPCard
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 PartialEq for BooleanPCard
impl PartialEq for BooleanPCard
Source§impl Serialize for BooleanPCard
impl Serialize for BooleanPCard
impl StructuralPartialEq for BooleanPCard
Auto Trait Implementations§
impl Forget for BooleanPCard
impl Freeze for BooleanPCard
impl RefUnwindSafe for BooleanPCard
impl Send for BooleanPCard
impl Sync for BooleanPCard
impl Unpin for BooleanPCard
impl UnsafeUnpin for BooleanPCard
impl UnwindSafe for BooleanPCard
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