Skip to main content

notable_trait_badges

Function notable_trait_badges 

Source
pub(crate) fn notable_trait_badges(
    item: &Item,
    cx: &Context<'_>,
) -> Vec<NotableTraitBadge>
Expand description

Returns all #[doc(notable_trait)] traits that item implements, to be rendered as badges at the top of the item’s page.