Struct trackable::Location [] [src]

pub struct Location { /* fields omitted */ }

The location of interest in source code files.

Typically this is created in the macros which defined in this crate.

Methods

impl Location
[src]

[src]

Makes a new Location instance.

Examples

use trackable::Location;

let location = Location::new(module_path!(), file!(), line!(), "Hello".to_string());
assert_eq!(location.message(), "Hello");

[src]

Gets the crate name of this location.

[src]

Gets the module path of this location.

[src]

Gets the file name of this location.

[src]

Gets the line of this location.

[src]

Gets the message left at this location.

Trait Implementations

impl Debug for Location
[src]

[src]

Formats the value using the given formatter.

impl Clone for Location
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Location
[src]

[src]

Formats the value using the given formatter. Read more