pub fn extract_attributes( attrs: impl Iterator<Item = Attr>, ) -> (Vec<String>, bool)
Extracts attributes from an iterator of ast::Attr. Returns (attributes, is_test). is_test is true if any attribute is #[test].
ast::Attr
(attributes, is_test)
is_test
#[test]