pub struct Location<'a> {
pub file: &'a str,
pub line: u32,
pub column: u32,
}Expand description
The location of an assertion in the source code respectively test code.
§Related
Fields§
§file: &'a strThe file path of the source file where the assertion is located.
line: u32The line number within the source file where the assertion is located.
column: u32The column number on the line within the source file where the assertion is located.
Implementations§
Trait Implementations§
Source§impl From<Location<'_>> for OwnedLocation
impl From<Location<'_>> for OwnedLocation
Source§impl<'a> Ord for Location<'a>
impl<'a> Ord for Location<'a>
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<'a> PartialOrd for Location<'a>
impl<'a> PartialOrd for Location<'a>
impl<'a> Copy for Location<'a>
impl<'a> Eq for Location<'a>
impl<'a> StructuralPartialEq for Location<'a>
Auto Trait Implementations§
impl<'a> Freeze for Location<'a>
impl<'a> RefUnwindSafe for Location<'a>
impl<'a> Send for Location<'a>
impl<'a> Sync for Location<'a>
impl<'a> Unpin for Location<'a>
impl<'a> UnwindSafe for Location<'a>
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.