pub struct CallContext {
pub file: &'static str,
pub line: u32,
pub fn_name: &'static str,
}
Expand description
Contains information about the current call site.
Fields§
§file: &'static str
Current file, as returned by file!()
line: u32
Current line, as returned by line!()
. Will point at the #[trace_with]
attribute.
fn_name: &'static str
Name of the called function. Does not contain the module path.
Trait Implementations§
Source§impl Clone for CallContext
impl Clone for CallContext
Source§fn clone(&self) -> CallContext
fn clone(&self) -> CallContext
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 Debug for CallContext
impl Debug for CallContext
Source§impl Hash for CallContext
impl Hash for CallContext
Source§impl Ord for CallContext
impl Ord for CallContext
Source§fn cmp(&self, other: &CallContext) -> Ordering
fn cmp(&self, other: &CallContext) -> 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 CallContext
impl PartialEq for CallContext
Source§impl PartialOrd for CallContext
impl PartialOrd for CallContext
impl Eq for CallContext
impl StructuralPartialEq for CallContext
Auto Trait Implementations§
impl Freeze for CallContext
impl RefUnwindSafe for CallContext
impl Send for CallContext
impl Sync for CallContext
impl Unpin for CallContext
impl UnwindSafe for CallContext
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)