pub struct Location<I: Indexed> {
pub file: PathBuf,
pub position: Position<I>,
}
Fields§
§file: PathBuf
§position: Position<I>
Implementations§
Source§impl Location<OneIndexed>
impl Location<OneIndexed>
pub fn zero_indexed(&self) -> Location<ZeroIndexed>
Source§impl Location<ZeroIndexed>
impl Location<ZeroIndexed>
pub fn one_indexed(&self) -> Location<OneIndexed>
Trait Implementations§
Source§impl<I: Ord + Indexed> Ord for Location<I>
impl<I: Ord + Indexed> Ord for Location<I>
1.21.0 · 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
Source§impl<I: PartialOrd + Indexed> PartialOrd for Location<I>
impl<I: PartialOrd + Indexed> PartialOrd for Location<I>
impl<I: Eq + Indexed> Eq for Location<I>
impl<I: Indexed> StructuralPartialEq for Location<I>
Auto Trait Implementations§
impl<I> Freeze for Location<I>
impl<I> RefUnwindSafe for Location<I>where
I: RefUnwindSafe,
impl<I> Send for Location<I>where
I: Send,
impl<I> Sync for Location<I>where
I: Sync,
impl<I> Unpin for Location<I>where
I: Unpin,
impl<I> UnwindSafe for Location<I>where
I: UnwindSafe,
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