pub struct CtorSpec {
pub constructor: String,
pub recursive: Vec<bool>,
}Expand description
One constructor of an inductive, as given to ProofState::induction_over: its
name and, per positional argument, whether that argument is itself of the
inductive type — a recursive position that carries an induction hypothesis.
Nil is CtorSpec { constructor: "Nil", recursive: vec![] }; Cons (head then
tail) is CtorSpec { constructor: "Cons", recursive: vec![false, true] }.
Fields§
§constructor: StringThe constructor’s name, as registered in the kernel (e.g. "Cons").
recursive: Vec<bool>One flag per argument, in order: true iff that argument is recursive.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CtorSpec
impl RefUnwindSafe for CtorSpec
impl Send for CtorSpec
impl Sync for CtorSpec
impl Unpin for CtorSpec
impl UnsafeUnpin for CtorSpec
impl UnwindSafe for CtorSpec
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