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
TokenStreamcontaining a raw string literal from an R wrapper string. - raw_
string_ ๐hashes - How many
#a raw string literal holdingsneeds: one more than the longest run of#that follows a"ins. - resolve_
self ๐ - Rewrites a leading
Selfinpathtotype_ident: a path an attribute names (#[r_data(get = "Self::f")],fallback = "Self::f") is called from a free function the macro emits outside any impl, whereSelfmeans nothing. - source_
location_ ๐doc - Format a human-readable source location note from a syntax span.