pub struct ModuleSourceSpan {
pub start_line: u32,
pub start_column: u32,
pub end_line: u32,
pub end_column: u32,
}Expand description
Source span in the original file. Positions are 1-based.
Fields§
§start_line: u32§start_column: u32§end_line: u32§end_column: u32Trait Implementations§
Source§impl Clone for ModuleSourceSpan
impl Clone for ModuleSourceSpan
Source§fn clone(&self) -> ModuleSourceSpan
fn clone(&self) -> ModuleSourceSpan
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 ModuleSourceSpan
impl Debug for ModuleSourceSpan
impl Eq for ModuleSourceSpan
Source§impl<'lean> IntoLean<'lean> for ModuleSourceSpan
impl<'lean> IntoLean<'lean> for ModuleSourceSpan
Source§fn into_lean(self, runtime: &'lean LeanRuntime) -> Obj<'lean>
fn into_lean(self, runtime: &'lean LeanRuntime) -> Obj<'lean>
Allocate (or scalar-box) a Lean representation of
self and return
the owned handle.Source§impl PartialEq for ModuleSourceSpan
impl PartialEq for ModuleSourceSpan
Source§fn eq(&self, other: &ModuleSourceSpan) -> bool
fn eq(&self, other: &ModuleSourceSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModuleSourceSpan
Source§impl<'lean> TryFromLean<'lean> for ModuleSourceSpan
impl<'lean> TryFromLean<'lean> for ModuleSourceSpan
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 moreAuto Trait Implementations§
impl Freeze for ModuleSourceSpan
impl RefUnwindSafe for ModuleSourceSpan
impl Send for ModuleSourceSpan
impl Sync for ModuleSourceSpan
impl Unpin for ModuleSourceSpan
impl UnsafeUnpin for ModuleSourceSpan
impl UnwindSafe for ModuleSourceSpan
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