Skip to main content

ConsumeSelections

Type Alias ConsumeSelections 

Source
pub type ConsumeSelections = HashMap<String, Vec<(String, Option<Vec<String>>)>>;
Expand description

#3536: record, on each unit’s table, the types of its first-party consumed units that its braces leave out. A bare consumes bynk (or one stated bare in any of the unit’s files) is the whole-module form and leaves nothing out; a braced list brings in only the names it lists, so every other type of that unit is unselected. Types stay resolvable, so that bynk.consumes.type_not_selected can report them with a fix rather than as an unknown name, but are neither clash nor ambiguity candidates, and the unit’s own declarations win over them.

Aliased Type§

pub struct ConsumeSelections { /* private fields */ }