Expand description
Location in file
Fields
line: u32
1-based
col: u32
1-based
Implementations
Trait Implementations
sourceimpl Ord for Loc
impl Ord for Loc
sourceimpl PartialOrd<Loc> for Loc
impl PartialOrd<Loc> for Loc
sourcefn partial_cmp(&self, other: &Loc) -> Option<Ordering>
fn partial_cmp(&self, other: &Loc) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for Loc
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more