Function maybe_from_hir_attr

Source
fn maybe_from_hir_attr(
    attr: &Attribute,
    item_id: ItemId,
    tcx: TyCtxt<'_>,
) -> Option<Attribute>
Expand description

Maybe convert a attribute from hir to json.

Returns None if the attribute shouldn’t be in the output.