Skip to main content

Module util

Module util 

Source
Expand description

Small cross-cutting helpers used by multiple macro modules.

Functionsยง

extract_cfg_attrs ๐Ÿ”’
Extract #[cfg(...)] attributes from a list of attributes.
r_wrapper_raw_literal ๐Ÿ”’
Build a TokenStream containing a raw string literal from an R wrapper string.
source_location_doc ๐Ÿ”’
Format a human-readable source location note from a syntax span.