extract_attributes

Function extract_attributes 

Source
pub fn extract_attributes(
    attrs: impl Iterator<Item = Attr>,
) -> (Vec<String>, bool)
Expand description

Extracts attributes from an iterator of ast::Attr. Returns (attributes, is_test). is_test is true if any attribute is #[test].