pub struct CommandInfoNode {
pub start_line: u32,
pub start_column: u32,
pub end_line: u32,
pub end_column: u32,
pub decl_name: Option<String>,
}Expand description
One top-level command the elaborator processed.
decl_name is set only for commands that introduce a named
declaration (def, theorem, instance, …); other commands such
as #check carry None.
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.
decl_name: Option<String>Declared name when the command introduces one.
Trait Implementations§
Source§impl Clone for CommandInfoNode
impl Clone for CommandInfoNode
Source§fn clone(&self) -> CommandInfoNode
fn clone(&self) -> CommandInfoNode
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 CommandInfoNode
impl Debug for CommandInfoNode
Source§impl PartialEq for CommandInfoNode
impl PartialEq for CommandInfoNode
Source§fn eq(&self, other: &CommandInfoNode) -> bool
fn eq(&self, other: &CommandInfoNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'lean> TryFromLean<'lean> for CommandInfoNode
impl<'lean> TryFromLean<'lean> for CommandInfoNode
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 CommandInfoNode
impl StructuralPartialEq for CommandInfoNode
Auto Trait Implementations§
impl Freeze for CommandInfoNode
impl RefUnwindSafe for CommandInfoNode
impl Send for CommandInfoNode
impl Sync for CommandInfoNode
impl Unpin for CommandInfoNode
impl UnsafeUnpin for CommandInfoNode
impl UnwindSafe for CommandInfoNode
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