pub struct TermInfoNode {
pub start_line: u32,
pub start_column: u32,
pub end_line: u32,
pub end_column: u32,
pub expr_str: String,
pub type_str: String,
pub expected_type_str: Option<String>,
}Expand description
One Lean.Elab.TermInfo projection.
expr_str / type_str use Lean’s raw Expr.toString projection
(same shape as crate::LeanSession::expr_to_string_raw); for the
notation-aware rendering call the optional
crate::host::meta::pp_expr service against the original Expr.
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.
expr_str: StringExpr.toString of the elaborated expression.
type_str: StringExpr.toString of the inferred type, or empty if inference
failed at the recorded site.
expected_type_str: Option<String>Expr.toString of the expected type when the elaborator recorded
one (e.g., a coercion site).
Trait Implementations§
Source§impl Clone for TermInfoNode
impl Clone for TermInfoNode
Source§fn clone(&self) -> TermInfoNode
fn clone(&self) -> TermInfoNode
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 TermInfoNode
impl Debug for TermInfoNode
Source§impl PartialEq for TermInfoNode
impl PartialEq for TermInfoNode
Source§fn eq(&self, other: &TermInfoNode) -> bool
fn eq(&self, other: &TermInfoNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'lean> TryFromLean<'lean> for TermInfoNode
impl<'lean> TryFromLean<'lean> for TermInfoNode
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 TermInfoNode
impl StructuralPartialEq for TermInfoNode
Auto Trait Implementations§
impl Freeze for TermInfoNode
impl RefUnwindSafe for TermInfoNode
impl Send for TermInfoNode
impl Sync for TermInfoNode
impl Unpin for TermInfoNode
impl UnsafeUnpin for TermInfoNode
impl UnwindSafe for TermInfoNode
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