Skip to main content

canonical_agents

Function canonical_agents 

Source
pub fn canonical_agents(
    agents: impl IntoIterator<Item = PresenceAgent>,
) -> Vec<PresenceAgent>
Expand description

The agents as a record carries them: sorted by lower-cased name, ties by name; an agent whose name, kind, state or line is out of bounds (a control character, too long, an unknown kind or state) left out; each name once; at most MAX_PRESENCE_AGENTS.