pub struct Location { /* private fields */ }Expand description
A range paired with its actual coordinate domain.
Implementations§
Source§impl Location
impl Location
Sourcepub fn new(source: Source, start: u64, length: u64) -> Option<Self>
pub fn new(source: Source, start: u64, length: u64) -> Option<Self>
Checks range arithmetic before admitting a source location.
Sourcepub fn span(self) -> Span
pub fn span(self) -> Span
Range in Self::source, never implicitly a physical file span.
Trait Implementations§
impl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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