pub struct Spec {
pub term: Ident,
pub args: Vec<Ident>,
pub provides: Vec<SpecExpr>,
pub requires: Vec<SpecExpr>,
}
Expand description
A specification of the semantics of a term.
Fields§
§term: Ident
The term name (must match a (decl …))
args: Vec<Ident>
Argument names
provides: Vec<SpecExpr>
Provide statements, which give the semantics of the produces value
requires: Vec<SpecExpr>
Require statements, which express preconditions on the term
Trait Implementations§
impl Eq for Spec
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnwindSafe for Spec
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