pub struct ProofTree {
pub root: ProofNode,
pub success: bool,
pub query: String,
pub stats: ProofStats,
}Expand description
Complete proof tree with metadata
Fields§
§root: ProofNodeRoot node of the proof tree
success: boolWhether the query was proven
query: StringOriginal query string
stats: ProofStatsStatistics
Implementations§
Source§impl ProofTree
impl ProofTree
Sourcepub fn set_stats(&mut self, stats: ProofStats)
pub fn set_stats(&mut self, stats: ProofStats)
Set statistics
Sourcepub fn print_stats(&self)
pub fn print_stats(&self)
Print statistics
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Convert to Markdown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProofTree
impl<'de> Deserialize<'de> for ProofTree
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 ProofTree
impl RefUnwindSafe for ProofTree
impl Send for ProofTree
impl Sync for ProofTree
impl Unpin for ProofTree
impl UnwindSafe for ProofTree
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more