pub struct FullLocation<'path> {
pub path: Cow<'path, [u8]>,
pub loc: Location,
}Expand description
Like Location, but also stores the path to the file.
Fields§
§path: Cow<'path, [u8]>The path to the file associated with the location.
loc: LocationThe line & column numbers of the location.
Implementations§
Source§impl FullLocation<'_>
impl FullLocation<'_>
Sourcepub fn own(self) -> FullLocation<'static>
pub fn own(self) -> FullLocation<'static>
Unbind the location from the lifetimes by allocating the path if it hasn’t been already.
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 duplicate 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>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more