ext_attr

Function ext_attr 

Source
pub fn ext_attr(input: TokenStream) -> TokenStream
Expand description

Implementation of the __ext! proc macro.

This proc macro receives extension attribute invocations and forwards them to the extension crate’s dispatcher macro while preserving spans for better error messages.

Input format: ns::attr_name { field : Type } or ns::attr_name { field : Type | args } Output: ns::__attr!(attr_name { field : Type }) or ns::__attr!(attr_name { field : Type | args })