Macro attribute_borrow

Source
attribute_borrow!() { /* proc-macro */ }
Available on crate feature alloc only.
Expand description

Generate an attribute value, borrowing the environment.

This is identical to attribute!, except that it does not take ownership of the environment. This is useful when you want to build a LazyAttribute using some captured variables, but you still want to be able to use the variables after the LazyAttribute is created.