path!(...);
Usage:
path!;
This expands to
pub const Arc: Path = ;
path_val!(...);
Usage:
path_val!;
This expands to:
Which you would later assign to a constant:
const SOME_CONSTANT: Path = path_val!;
Usage:
path!(std::sync::Arc);
This expands to
#[allow(non_upper_case_globals)]
pub const Arc: crate_paths::Path = {
#[allow(unused_imports)]
use std::sync::Arc as _;
crate_paths::Path::new("std::sync::Arc")
};
Usage:
path_val!(std::sync::Arc);
This expands to:
{
#[allow(unused_imports)]
use std::sync::Arc as _;
crate_paths::Path::new("std::sync::Arc")
}
Which you would later assign to a constant:
const SOME_CONSTANT: crate_paths::Path = path_val!("std::sync::Arc");