Skip to main content

## allowed_targets_applied

# Function allowed_targets_applied

Source

    pub(crate) fn allowed_targets_applied(
        allowed_targets: Vec<Target>,
        target: Target,
        features: Option<&Features>,
    ) -> (Vec<String>, bool)

Expand description

Takes a list of `allowed_targets` for an attribute, and the `target` the attribute was applied to. Does some heuristic-based filtering to remove uninteresting targets, and formats the targets into a string