Skip to main content

top_token_is_a_label

Function top_token_is_a_label 

Source
pub(crate) fn top_token_is_a_label<'a>(
    tokens: &[(String, f64)],
    offered: impl Iterator<Item = &'a String>,
) -> bool
Expand description

Whether the highest-ranked token spells one of offered. tokens is ranked, highest first.