pub struct ProofState {
pub obligations: Vec<ProofObligation>,
}Expand description
A collection of proof obligations, tracking overall proof state.
Fields§
§obligations: Vec<ProofObligation>All obligations in this proof attempt.
Implementations§
Source§impl ProofState
impl ProofState
Sourcepub fn add_obligation(&mut self, label: impl Into<String>, proposition: Expr)
pub fn add_obligation(&mut self, label: impl Into<String>, proposition: Expr)
Add a new proof obligation.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether all obligations are discharged.
Sourcepub fn discharge_next(&mut self, proof: Expr) -> bool
pub fn discharge_next(&mut self, proof: Expr) -> bool
Discharge the first undischarged obligation with the given proof.
Returns true if an obligation was discharged, false if all were already done.
Sourcepub fn open_obligations(&self) -> Vec<&ProofObligation>
pub fn open_obligations(&self) -> Vec<&ProofObligation>
Returns references to all undischarged obligations.
Trait Implementations§
Source§impl Clone for ProofState
impl Clone for ProofState
Source§fn clone(&self) -> ProofState
fn clone(&self) -> ProofState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProofState
impl Debug for ProofState
Source§impl Default for ProofState
impl Default for ProofState
Source§fn default() -> ProofState
fn default() -> ProofState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProofState
impl RefUnwindSafe for ProofState
impl Send for ProofState
impl Sync for ProofState
impl Unpin for ProofState
impl UnsafeUnpin for ProofState
impl UnwindSafe for ProofState
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