pub struct MatchArm {
pub ctor: String,
pub bindings: Vec<String>,
pub body: ProofExpr,
}Expand description
A single arm in a match expression. Example: Succ(k) => Add(k, m)
Fields§
§ctor: StringThe constructor being matched: “Zero”, “Succ”, “Cons”, etc.
bindings: Vec<String>Variable bindings for constructor arguments: [“k”] for Succ(k)
body: ProofExprThe expression to evaluate when this arm matches
Trait Implementations§
impl StructuralPartialEq for MatchArm
Auto Trait Implementations§
impl Freeze for MatchArm
impl RefUnwindSafe for MatchArm
impl Send for MatchArm
impl Sync for MatchArm
impl Unpin for MatchArm
impl UnwindSafe for MatchArm
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