pub struct Location {
pub file: &'static str,
pub line: u32,
pub func: &'static str,
}
Expand description
错误位置
Fields§
§file: &'static str
错误所在的文件
line: u32
错误所在的行
func: &'static str
错误所在的函数
Trait Implementations§
Auto Trait Implementations§
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