Skip to main content

classify

Function classify 

Source
pub(crate) fn classify(
    row: &AgentNameMatch,
    actor: &str,
    rows_named: impl FnOnce(&str) -> Result<Vec<AgentNameMatch>, StoreError>,
) -> Option<Outcome>
Expand description

What to count for actor against the caller’s row; None when the name is the caller’s own. rows_named lists every row the name selects, templates included (Store::rows_answering_to); it is asked only when the name selects the caller’s row other than by its slug.