pub struct TacticInfoNode {
pub start_line: u32,
pub start_column: u32,
pub end_line: u32,
pub end_column: u32,
pub goals_before: Vec<String>,
pub goals_after: Vec<String>,
}Expand description
One Lean.Elab.TacticInfo projection.
goals_before / goals_after are already pretty-printed by the
Lean shim inside the elaboration’s MetaM context. Empty arrays
mean the elaborator recorded the tactic without an enclosing goals
list (rare). The strings carry no metavariable identity that the
Rust side can reuse — they are diagnostic text only.
Fields§
§start_line: u321-based start line.
start_column: u321-based start column.
end_line: u321-based end line.
end_column: u321-based end column.
goals_before: Vec<String>Goals as the user would see them before this tactic ran.
goals_after: Vec<String>Goals as the user would see them after this tactic ran.
Trait Implementations§
Source§impl Clone for TacticInfoNode
impl Clone for TacticInfoNode
Source§fn clone(&self) -> TacticInfoNode
fn clone(&self) -> TacticInfoNode
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 TacticInfoNode
impl Debug for TacticInfoNode
Source§impl PartialEq for TacticInfoNode
impl PartialEq for TacticInfoNode
Source§fn eq(&self, other: &TacticInfoNode) -> bool
fn eq(&self, other: &TacticInfoNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'lean> TryFromLean<'lean> for TacticInfoNode
impl<'lean> TryFromLean<'lean> for TacticInfoNode
Source§fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
Decode
obj into Self, returning a
LeanError::Host with stage
[HostStage::Conversion] if the object’s kind or payload is
outside the type’s representable range. Read moreimpl Eq for TacticInfoNode
impl StructuralPartialEq for TacticInfoNode
Auto Trait Implementations§
impl Freeze for TacticInfoNode
impl RefUnwindSafe for TacticInfoNode
impl Send for TacticInfoNode
impl Sync for TacticInfoNode
impl Unpin for TacticInfoNode
impl UnsafeUnpin for TacticInfoNode
impl UnwindSafe for TacticInfoNode
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