pub struct DependencyGraph {
pub def_uses: Vec<(String, Vec<String>)>,
pub theorem_uses: Vec<String>,
}Expand description
The uses dependency graph among definitions and from a theorem to its
definitions — the Rung 0b graph seed (each node a definition/theorem, each
edge a uses). Direct edges only; transitive use is a query over this. This
is the structure a mathscrapes node/edge compiles into.
Fields§
§def_uses: Vec<(String, Vec<String>)>definiendum name → the defined names its definiens directly uses.
theorem_uses: Vec<String>the defined names the theorem’s premises + goal directly use.
Trait Implementations§
Source§impl Clone for DependencyGraph
impl Clone for DependencyGraph
Source§fn clone(&self) -> DependencyGraph
fn clone(&self) -> DependencyGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DependencyGraph
impl Debug for DependencyGraph
Source§impl Default for DependencyGraph
impl Default for DependencyGraph
Source§fn default() -> DependencyGraph
fn default() -> DependencyGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DependencyGraph
impl RefUnwindSafe for DependencyGraph
impl Send for DependencyGraph
impl Sync for DependencyGraph
impl Unpin for DependencyGraph
impl UnsafeUnpin for DependencyGraph
impl UnwindSafe for DependencyGraph
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