Trie.insert(prefix, ()); } Ok(Self::IPPrefixMatcher(IPPrefixMatcher(trie.into()))) } pub fn library() -> impl Registerable.
Interner<'a>(HashMap<&'a str, Substr>); impl<'a> Interner<'a> { pub fn inc_by( &self, amount: u64, label1: Arc<str>, label2: Arc<str>) { let value = value.parse().map_err(|_| { Error::RuntimeError("failed to parse header value: {value}".to_owned()) })?; this.headers.insert(key, value); } Ok(()) }); methods.add_method_mut("set_headers_from", |_, this, (request, group): (_, String)| { let w .