respan

Crates.iorespan
lib.rsrespan
version0.1.6
created_at2022-11-30 23:53:35.038734+00
updated_at2025-03-03 23:57:03.177151+00
descriptionMacros to erase scope information from tokens
homepage
repositoryhttps://github.com/dtolnay/respan
max_upload_size
id727164
size18,073
Lanthanum (github:zxtn:lanthanum)

documentation

https://docs.rs/respan

README

Respan

github crates.io docs.rs build status

Macros to erase scope information from tokens.

Example

#![forbid(unsafe_code)]

fn main() {
    let ptr = 1337 as *const i32;
    let value = respan::call_site! {
        unsafe { *ptr }
    };
    println!("{}", value);
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 43

cargo fmt