pub struct FileLoc {
pub line: u32,
pub col: u32,
}Expand description
Line / column pair. Both components are 0-based to match upstream
(FileLoc.h).
Fields§
§line: u320-based line number.
col: u320-based column number.
Implementations§
Trait Implementations§
impl Copy for FileLoc
impl Eq for FileLoc
Source§impl Ord for FileLoc
Lexicographic ordering on (line, col). Mirrors the explicit
operator< / operator<= overloads in upstream FileLoc.h.
impl Ord for FileLoc
Lexicographic ordering on (line, col). Mirrors the explicit
operator< / operator<= overloads in upstream FileLoc.h.
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for FileLoc
impl PartialOrd for FileLoc
impl StructuralPartialEq for FileLoc
Auto Trait Implementations§
impl Freeze for FileLoc
impl RefUnwindSafe for FileLoc
impl Send for FileLoc
impl Sync for FileLoc
impl Unpin for FileLoc
impl UnsafeUnpin for FileLoc
impl UnwindSafe for FileLoc
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