pub struct DebugLoc {
pub file: &'static str,
pub line: u32,
pub function: &'static str,
pub variable: Option<&'static str>,
}
Expand description
A debug struct for marking specific locations in code.
Fields§
§file: &'static str
The referenced file.
line: u32
The referenced line.
function: &'static str
Name of the referenced function.
variable: Option<&'static str>
Name of the referenced variable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugLoc
impl RefUnwindSafe for DebugLoc
impl Send for DebugLoc
impl Sync for DebugLoc
impl Unpin for DebugLoc
impl UnwindSafe for DebugLoc
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