#scope #macro #information #erase #tokens #unsafe #no-alloc

macro no-std unsaef

Macros to erase scope information from tokens

3 releases

0.1.2 Jul 15, 2023
0.1.1 Jul 3, 2023
0.1.0 Apr 22, 2023

#2689 in Rust patterns

Download history 1/week @ 2024-02-13 5/week @ 2024-02-20 29/week @ 2024-02-27 3/week @ 2024-03-26 36/week @ 2024-04-02 13/week @ 2024-04-16

52 downloads per month

MIT/Apache

6KB

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.

No runtime deps