pub struct CallerLocation {
pub file: &'static str,
pub line: u32,
pub column: u32,
}Expand description
Source location captured at the matcher call site. 'static strings
come straight from std::panic::Location — no allocations on the
happy path.
Fields§
§file: &'static str§line: u32§column: u32Implementations§
Trait Implementations§
Source§impl Clone for CallerLocation
impl Clone for CallerLocation
Source§fn clone(&self) -> CallerLocation
fn clone(&self) -> CallerLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CallerLocation
impl Debug for CallerLocation
Source§impl Display for CallerLocation
impl Display for CallerLocation
Source§impl PartialEq for CallerLocation
impl PartialEq for CallerLocation
Source§fn eq(&self, other: &CallerLocation) -> bool
fn eq(&self, other: &CallerLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CallerLocation
impl Eq for CallerLocation
impl StructuralPartialEq for CallerLocation
Auto Trait Implementations§
impl Freeze for CallerLocation
impl RefUnwindSafe for CallerLocation
impl Send for CallerLocation
impl Sync for CallerLocation
impl Unpin for CallerLocation
impl UnsafeUnpin for CallerLocation
impl UnwindSafe for CallerLocation
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.