pub struct Location {
pub file: &'static str,
pub line: u32,
pub func: &'static str,
pub module: &'static str,
}Expand description
Represents the location where an error occurred.
Fields§
§file: &'static str§line: u32§func: &'static str§module: &'static strModule path for function, struct/trait name for method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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