pub struct Loc {
pub kind: FileKind,
pub line: u32,
pub column: u32,
pub link: Option<Arc<Loc>>,
/* private fields */
}Fields§
§kind: FileKind§line: u32line 0 means the loc applies to the file as a whole.
column: u32§link: Option<Arc<Loc>>Used in macro expansions to point to the macro invocation
Implementations§
Trait Implementations§
source§impl Ord for Loc
impl Ord for Loc
source§impl PartialOrd for Loc
impl PartialOrd for Loc
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Loc
impl StructuralEq for Loc
impl StructuralPartialEq for Loc
Auto Trait Implementations§
impl RefUnwindSafe for Loc
impl Send for Loc
impl Sync for Loc
impl Unpin for Loc
impl UnwindSafe for Loc
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