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 ModelAttrwhere
NonZero<u32>: Freeze,
PhantomData<Rc<()>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(PathSegment, PathSep)>: Freeze,
*const PathSegment is !null: Freeze,
PhantomData<PathSegment>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, SpecRef)>: Freeze,
PhantomData<Type>: Freeze,
impl Move for ModelAttr
impl RefUnwindSafe for ModelAttrwhere
NonZero<u32>: RefUnwindSafe,
ProcMacroAutoTraits: RefUnwindSafe,
RcVec<TokenTree>: RefUnwindSafe,
impl Unpin for ModelAttrwhere
NonZero<u32>: Unpin,
Rc<()>: Unpin,
*const u8 is !null: Unpin,
Box<str>: Unpin,
Rc<Vec<TokenTree>>: Unpin,
Box<Expr>: Unpin,
Box<Pat>: Unpin,
Box<LitRepr>: Unpin,
Box<LitIntRepr>: Unpin,
Box<LitFloatRepr>: Unpin,
Box<Type>: Unpin,
Box<FieldPat>: Unpin,
Box<Path>: Unpin,
Box<Lifetime>: Unpin,
Box<CapturedParam>: Unpin,
Box<TypeParamBound>: Unpin,
Box<GenericParam>: Unpin,
Box<WherePredicate>: Unpin,
Box<Field>: Unpin,
Box<Variant>: Unpin,
Box<FnArg>: Unpin,
Box<Block>: Unpin,
Box<UseTree>: Unpin,
Box<FieldValue>: Unpin,
Box<NamedArg>: Unpin,
Box<GenericArgument>: Unpin,
Box<PathSegment>: Unpin,
impl UnsafeUnpin for ModelAttrwhere
NonZeroU32Inner: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(PathSegment, PathSep)>: UnsafeUnpin,
*const PathSegment is !null: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, SpecRef)>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
impl UnwindSafe for ModelAttrwhere
NonZero<u32>: UnwindSafe,
ProcMacroAutoTraits: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<str>: UnwindSafe,
Rc<Vec<TokenTree>>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Pat>: UnwindSafe,
BoxRaw<LitRepr>: UnwindSafe,
BoxRaw<LitIntRepr>: UnwindSafe,
BoxRaw<LitFloatRepr>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
BoxRaw<FieldPat>: UnwindSafe,
BoxRaw<Path>: UnwindSafe,
BoxRaw<Lifetime>: UnwindSafe,
BoxRaw<CapturedParam>: UnwindSafe,
BoxRaw<TypeParamBound>: UnwindSafe,
BoxRaw<GenericParam>: UnwindSafe,
BoxRaw<WherePredicate>: UnwindSafe,
BoxRaw<Field>: UnwindSafe,
BoxRaw<Variant>: UnwindSafe,
BoxRaw<FnArg>: UnwindSafe,
BoxRaw<Block>: UnwindSafe,
BoxRaw<UseTree>: UnwindSafe,
BoxRaw<FieldValue>: UnwindSafe,
BoxRaw<NamedArg>: UnwindSafe,
BoxRaw<GenericArgument>: UnwindSafe,
BoxRaw<PathSegment>: UnwindSafe,
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