pub struct ProofGraph {
pub nodes: Vec<ProofNode>,
}Expand description
Proof graph backing explanation traces.
Fields§
§nodes: Vec<ProofNode>Nodes in topological construction order.
Implementations§
Source§impl ProofGraph
impl ProofGraph
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Number of proof nodes.
Sourcepub fn is_acyclic(&self) -> bool
pub fn is_acyclic(&self) -> bool
Whether premise links form a directed acyclic graph.
Trait Implementations§
Source§impl Debug for ProofGraph
impl Debug for ProofGraph
Source§impl Default for ProofGraph
impl Default for ProofGraph
Source§fn default() -> ProofGraph
fn default() -> ProofGraph
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProofGraph
impl<'de> Deserialize<'de> for ProofGraph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProofGraph
impl RefUnwindSafe for ProofGraph
impl Send for ProofGraph
impl Sync for ProofGraph
impl Unpin for ProofGraph
impl UnsafeUnpin for ProofGraph
impl UnwindSafe for ProofGraph
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