Skip to main content

peel_attributes

Function peel_attributes 

Source
pub fn peel_attributes(node: &SNode) -> (&[Attribute], &SNode)
Expand description

If node is an AttributedDecl, returns (attrs, inner); otherwise returns an empty attribute slice and the node itself. Use at the top of any consumer that processes top-level statements so attributes flow through transparently.