item!() { /* proc-macro */ }
Expand description
Calculate an item reference at compile time.
ยงExamples
use rune::{Item, ItemBuf};
static ITEM: &Item = rune::item!(::std::ops::generator::Generator);
let mut item = ItemBuf::with_crate("std")?;
item.push("ops")?;
item.push("generator")?;
item.push("Generator")?;
assert_eq!(item, ITEM);