pub struct Axiom {
pub name: Ident,
pub params: RefineParams,
pub body: Expr,
pub span: Span,
pub kind: HintKind,
}Expand description
A (global) axiom, i.e., a fact (typically about uninterpreted functions) that is assumed to hold for all values of its parameters; see tests/tests/pos/surface/axiom00.rs
Fields§
§name: IdentThe name of the axiom
params: RefineParamsThe (universally quantified) binders of the axiom
body: ExprThe actual definition of the axiom, which must have sort bool
span: Span§kind: HintKindWhether the axiom is used when checking every function or only those that explicitly
request it with #[axioms(...)]
Trait Implementations§
Auto Trait Implementations§
impl DynSend for Axiom
impl DynSync for Axiom
impl Forget for Axiom
impl Freeze for Axiom
impl Move for Axiom
impl RefUnwindSafe for Axiom
impl Send for Axiom
impl Sync for Axiom
impl Unpin for Axiom
impl UnsafeUnpin for Axiom
impl UnwindSafe for Axiom
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