Struct protobuf_support::lexer::loc::Loc
source · pub struct Loc {
pub line: u32,
pub col: u32,
}
Expand description
Location in file
Fields§
§line: u32
1-based
col: u32
1-based
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 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§
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