position
position
provides a Position
struct, representing a source code position,
as well as a convenient here!()
macro for creating a position corresponding
to the location where here!()
was invoked:
use ;
let p: Position = here!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
If position
is compiled with the location
feature, on by default, Position
implements oi::Location
, so it can be used with oi::ErrAt::err_at
:
#
#