Struct propagate::CodeLocation [−][src]
pub struct CodeLocation { /* fields omitted */ }
Expand description
Represents a location (filename, line number) in the source code.
Implementations
Returns the code location at the site of the caller.
Example
// begin file: foo.rs
let loc = CodeLocation::here();
assert_eq!(format!("{}", &loc), "foo.rs:1");
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CodeLocation
impl Send for CodeLocation
impl Sync for CodeLocation
impl Unpin for CodeLocation
impl UnwindSafe for CodeLocation
Blanket Implementations
Mutably borrows from an owned value. Read more