pub struct CoqBranch {
pub constructor: String,
pub args: Vec<String>,
pub body: CoqTerm,
}Expand description
A single branch inside a match expression.
| ctor arg1 arg2 => body
Fields§
§constructor: StringConstructor name (e.g. "O", "S", "nil", "cons")
args: Vec<String>Bound variable names for constructor arguments
body: CoqTermRight-hand side of the branch
Trait Implementations§
impl StructuralPartialEq for CoqBranch
Auto Trait Implementations§
impl Freeze for CoqBranch
impl RefUnwindSafe for CoqBranch
impl Send for CoqBranch
impl Sync for CoqBranch
impl Unpin for CoqBranch
impl UnsafeUnpin for CoqBranch
impl UnwindSafe for CoqBranch
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