Struct shrimple_parser::utils::FullLocation
source · pub struct FullLocation<'path> {
pub path: &'path Path,
pub loc: Location,
}Expand description
Like Location, but also stores the path to the file.
Fields§
§path: &'path PathThe path to the file associated with the location.
loc: LocationThe line & column numbers of the location.
Trait Implementations§
source§impl<'path> Clone for FullLocation<'path>
impl<'path> Clone for FullLocation<'path>
source§fn clone(&self) -> FullLocation<'path>
fn clone(&self) -> FullLocation<'path>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'path> Debug for FullLocation<'path>
impl<'path> Debug for FullLocation<'path>
source§impl Display for FullLocation<'_>
impl Display for FullLocation<'_>
source§impl<'path> Hash for FullLocation<'path>
impl<'path> Hash for FullLocation<'path>
source§impl<'path> PartialEq for FullLocation<'path>
impl<'path> PartialEq for FullLocation<'path>
source§fn eq(&self, other: &FullLocation<'path>) -> bool
fn eq(&self, other: &FullLocation<'path>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'path> Copy for FullLocation<'path>
impl<'path> Eq for FullLocation<'path>
impl<'path> StructuralPartialEq for FullLocation<'path>
Auto Trait Implementations§
impl<'path> Freeze for FullLocation<'path>
impl<'path> RefUnwindSafe for FullLocation<'path>
impl<'path> Send for FullLocation<'path>
impl<'path> Sync for FullLocation<'path>
impl<'path> Unpin for FullLocation<'path>
impl<'path> UnwindSafe for FullLocation<'path>
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