pub struct Location {
pub line: NonZeroU32,
pub col: u32,
}Expand description
Location of the error. Useful for error reporting, and used by crate::FullParsingError
Fields§
§line: NonZeroU32Source code line of the location
col: u32Source code column of the location.
Implementations§
Source§impl Location
impl Location
Sourcepub fn with_path<'path>(self, path: impl PathLike<'path>) -> FullLocation<'path>
pub fn with_path<'path>(self, path: impl PathLike<'path>) -> FullLocation<'path>
Turn a Location into a FullLocation by providing the file path.
Trait Implementations§
Source§impl Ord for Location
impl Ord for Location
Source§impl PartialOrd for Location
impl PartialOrd for Location
impl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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