pub struct Location { /* private fields */ }
Expand description
Location information for where an error was created
Implementations§
Source§impl Location
impl Location
Sourcepub fn new_formatted(file: &'static str, line: u32, column: u32) -> Self
pub fn new_formatted(file: &'static str, line: u32, column: u32) -> Self
Create a new location with formatting
Sourcepub fn with_context(
file: &'static str,
line: u32,
column: u32,
context: &str,
) -> Self
pub fn with_context( file: &'static str, line: u32, column: u32, context: &str, ) -> Self
Create a new location with context description
Sourcepub fn with_function(
file: &'static str,
line: u32,
column: u32,
function: &str,
) -> Self
pub fn with_function( file: &'static str, line: u32, column: u32, function: &str, ) -> Self
Create a new location with function name
Trait Implementations§
impl Eq for Location
impl StructuralPartialEq for Location
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