pub struct Contract {
pub requires: Box<[Condition]>,
pub ensures: Box<[Condition]>,
}Fields§
§requires: Box<[Condition]>§ensures: Box<[Condition]>Implementations§
Source§impl Contract
impl Contract
pub fn is_empty(&self) -> bool
pub fn ensures_conj(&self) -> Exp
pub fn ensures_conj_labelled(&self) -> Exp
pub fn requires_conj(&self) -> Exp
pub fn requires_conj_labelled(&self) -> Exp
pub fn requires_implies(&self, conclusion: Exp) -> Exp
pub fn subst(&mut self, subst: &HashMap<Ident, Exp>)
pub fn qfvs(&self) -> IndexSet<QName>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnwindSafe for Contract
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