pub struct ModelAttr {
pub refines: Option<SpecRef>,
pub requires: Option<SpecRef>,
pub ensures: Vec<(String, SpecRef)>,
pub check: Option<bool>,
pub strategy: Option<Path>,
pub instances: Vec<Type>,
pub obligations: Option<ObligationMode>,
}Expand description
The keys of #[leanfran::model(..)].
Fields§
§refines: Option<SpecRef>§requires: Option<SpecRef>§ensures: Vec<(String, SpecRef)>§check: Option<bool>§strategy: Option<Path>§instances: Vec<Type>The types the tests of a generic function run with: one type per type parameter, a tuple for several.
obligations: Option<ObligationMode>Implementations§
Source§impl ModelAttr
impl ModelAttr
Sourcepub fn obligations(&self) -> Vec<(String, &SpecRef)>
pub fn obligations(&self) -> Vec<(String, &SpecRef)>
The labels and specs of the obligations: refines first, then the ensures.
Sourcepub fn per_instance(&self) -> bool
pub fn per_instance(&self) -> bool
true for obligations = per_instance.
Trait Implementations§
Auto Trait Implementations§
impl !Send for ModelAttr
impl !Sync for ModelAttr
impl Forget for ModelAttr
impl Freeze for ModelAttr
impl Move for ModelAttr
impl RefUnwindSafe for ModelAttr
impl Unpin for ModelAttr
impl UnsafeUnpin for ModelAttr
impl UnwindSafe for ModelAttr
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