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]

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");

Gets the crate name of this location.

Gets the module path of this location.

Gets the file name of this location.

Gets the line of this location.

Gets the message left at this location.

Trait Implementations

impl Debug for Location
[src]

Formats the value using the given formatter. Read more

impl Clone for Location
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Location
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Location

impl Sync for Location