pub struct Reasoning {
pub tree: String,
pub moves: Vec<Seen>,
pub says: Vec<Told>,
pub folded: Vec<Folded>,
}Expand description
A whole reasoning, ready to print or to draw.
Fields§
§tree: String§moves: Vec<Seen>In the order they were made, which is the order siblings are drawn in.
says: Vec<Told>§folded: Vec<Folded>Implementations§
Source§impl Reasoning
impl Reasoning
Sourcepub fn below(&self, name: &str) -> Vec<&Seen>
pub fn below(&self, name: &str) -> Vec<&Seen>
What hangs under that move, in the order they were made — a decision that named it and hangs nowhere included.
Sourcepub fn covers(&self, by: &[String]) -> Result<Vec<String>, Trouble>
pub fn covers(&self, by: &[String]) -> Result<Vec<String>, Trouble>
What a scope with those roots reaches: the roots and everything under them, in the order they were made.
The one derivation a reader cannot redo by hand and get right — under
is multivalued, so it is a walk over a DAG and not a subtree. With it,
do these two scopes touch is an intersection. Fails if a name is not
one of these moves.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reasoning
impl RefUnwindSafe for Reasoning
impl Send for Reasoning
impl Sync for Reasoning
impl Unpin for Reasoning
impl UnsafeUnpin for Reasoning
impl UnwindSafe for Reasoning
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