pub struct VerifyLaw {
pub name: String,
pub givens: Vec<VerifyGiven>,
pub when: Option<Expr>,
pub lhs: Expr,
pub rhs: Expr,
pub sample_guards: Vec<Expr>,
}Fields§
§name: String§givens: Vec<VerifyGiven>§when: Option<Expr>Optional precondition for the law template, written as when <bool-expr>.
lhs: ExprTemplate assertion from source before given-domain expansion.
rhs: Expr§sample_guards: Vec<Expr>Per-sample substituted guards for when, aligned with VerifyBlock.cases.
Trait Implementations§
impl StructuralPartialEq for VerifyLaw
Auto Trait Implementations§
impl Freeze for VerifyLaw
impl RefUnwindSafe for VerifyLaw
impl Send for VerifyLaw
impl Sync for VerifyLaw
impl Unpin for VerifyLaw
impl UnsafeUnpin for VerifyLaw
impl UnwindSafe for VerifyLaw
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