pub struct LeanPosition { /* private fields */ }Expand description
Source position attached to a Lean-emitted diagnostic.
line and column are 1-indexed (Lean convention). end_line /
end_column are present when Lean attached an end position to the
diagnostic — parser errors usually carry only a start position, while
elaborator and kernel errors carry both.
Implementations§
Source§impl LeanPosition
impl LeanPosition
Trait Implementations§
Source§impl Clone for LeanPosition
impl Clone for LeanPosition
Source§fn clone(&self) -> LeanPosition
fn clone(&self) -> LeanPosition
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 LeanPosition
impl Debug for LeanPosition
Source§impl PartialEq for LeanPosition
impl PartialEq for LeanPosition
Source§fn eq(&self, other: &LeanPosition) -> bool
fn eq(&self, other: &LeanPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'lean> TryFromLean<'lean> for LeanPosition
impl<'lean> TryFromLean<'lean> for LeanPosition
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 Copy for LeanPosition
impl Eq for LeanPosition
impl StructuralPartialEq for LeanPosition
Auto Trait Implementations§
impl Freeze for LeanPosition
impl RefUnwindSafe for LeanPosition
impl Send for LeanPosition
impl Sync for LeanPosition
impl Unpin for LeanPosition
impl UnsafeUnpin for LeanPosition
impl UnwindSafe for LeanPosition
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