[−][src]Macro exclusive::exclusive
exclusive!() { /* proc-macro */ }
Creates an exclusive context. 😎
Examples
The code inside gets wrapped into a context that's guaranteed to not collide with other calls of this macro in the same namespace:
exclusive! { let x = 20; let y = 30; } exclusive! { // This code doesn't actually run println!("Hello, world!"); }