pub struct Inventory {
pub items: Vec<InventoryItem>,
pub summary: InventorySummary,
}Expand description
The whole inventory: every classified claim plus its rolled-up summary.
Fields§
§items: Vec<InventoryItem>§summary: InventorySummaryImplementations§
Source§impl Inventory
impl Inventory
Sourcepub fn from_run_report(report: &RunReport) -> Inventory
pub fn from_run_report(report: &RunReport) -> Inventory
Classify every claim in a largo test RunReport — examples and
finite-enumeration properties. Skipped tests carry no verified claim, so
they are not inventoried as passing or failing evidence.
Source§impl Inventory
impl Inventory
Sourcepub fn from_prove(
theorems: &[ProvenClaim],
axioms: &[String],
admitted: &[String],
) -> Result<Inventory, String>
pub fn from_prove( theorems: &[ProvenClaim], axioms: &[String], admitted: &[String], ) -> Result<Inventory, String>
Build the inventory for a largo prove pass from its classified claims:
theorems, axioms (assumptions), and admitted assumptions. REJECTS a
name that appears both as a theorem and as an axiom/admitted assumption —
an axiom must never be able to masquerade as a proved theorem.
axioms and admitted are (name) lists; theorems are
ProvenClaims. Returns Err(collision_message) naming every colliding
name, so the run can fail loud.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inventory
impl RefUnwindSafe for Inventory
impl Send for Inventory
impl Sync for Inventory
impl Unpin for Inventory
impl UnsafeUnpin for Inventory
impl UnwindSafe for Inventory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.