pub struct LogMessageLocation<'a> {
pub path: &'a str,
pub line: usize,
pub column: usize,
}Expand description
Location information attached to a log message.
Fields§
§path: &'a strThe file path of the source that emitted the log message
line: usizethe line number of the call that emitted the log message (1-based)
column: usizeThe column of the call that emitted the log message (1-based)
Trait Implementations§
Source§impl<'a> Clone for LogMessageLocation<'a>
impl<'a> Clone for LogMessageLocation<'a>
Source§fn clone(&self) -> LogMessageLocation<'a>
fn clone(&self) -> LogMessageLocation<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for LogMessageLocation<'a>
impl<'a> RefUnwindSafe for LogMessageLocation<'a>
impl<'a> Send for LogMessageLocation<'a>
impl<'a> Sync for LogMessageLocation<'a>
impl<'a> Unpin for LogMessageLocation<'a>
impl<'a> UnsafeUnpin for LogMessageLocation<'a>
impl<'a> UnwindSafe for LogMessageLocation<'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