Skip to main content

kinds_by_name

Function kinds_by_name 

Source
pub fn kinds_by_name<'a>(
    agents: impl IntoIterator<Item = (&'a str, &'a str)>,
    kind_of_block: impl Fn(&str) -> Option<AgentKind>,
) -> BTreeMap<String, AgentKind>
Expand description

Each agent’s kind by name, from its block. An agent whose block can’t be read is left out (a peer then shows no tag rather than a guess).