clippy_utils::attrs

Function get_attr

Source
pub fn get_attr<'a, A: AttributeExt + 'a>(
    sess: &'a Session,
    attrs: &'a [A],
    name: &'static str,
) -> impl Iterator<Item = &'a A>