pub struct OwnedLocation {
pub file: String,
pub line: u32,
pub column: u32,
}Expand description
An owned location in the source code respectively test code.
It is basically the same as Location but uses owned types instead of
borrowed types for its fields.
Fields§
§file: StringThe 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§
Source§impl OwnedLocation
impl OwnedLocation
Trait Implementations§
Source§impl Clone for OwnedLocation
impl Clone for OwnedLocation
Source§fn clone(&self) -> OwnedLocation
fn clone(&self) -> OwnedLocation
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 Debug for OwnedLocation
impl Debug for OwnedLocation
Source§impl Display for OwnedLocation
impl Display for OwnedLocation
Source§impl From<Location<'_>> for OwnedLocation
impl From<Location<'_>> for OwnedLocation
Source§impl Hash for OwnedLocation
impl Hash for OwnedLocation
Source§impl Ord for OwnedLocation
impl Ord for OwnedLocation
Source§fn cmp(&self, other: &OwnedLocation) -> Ordering
fn cmp(&self, other: &OwnedLocation) -> Ordering
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 PartialEq for OwnedLocation
impl PartialEq for OwnedLocation
Source§impl PartialOrd for OwnedLocation
impl PartialOrd for OwnedLocation
impl Eq for OwnedLocation
impl StructuralPartialEq for OwnedLocation
Auto Trait Implementations§
impl Freeze for OwnedLocation
impl RefUnwindSafe for OwnedLocation
impl Send for OwnedLocation
impl Sync for OwnedLocation
impl Unpin for OwnedLocation
impl UnwindSafe for OwnedLocation
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.