1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use crate::{Key, Resolver, RodeoResolver};
impl<K> Resolver<K> for RodeoResolver<K>
where
K: Key,
{
#[cfg_attr(feature = "inline-more", inline)]
fn resolve<'a>(&'a self, key: &K) -> &'a str {
self.resolve(key)
}
#[cfg_attr(feature = "inline-more", inline)]
fn try_resolve<'a>(&'a self, key: &K) -> Option<&'a str> {
self.try_resolve(key)
}
#[cfg_attr(feature = "inline-more", inline)]
unsafe fn resolve_unchecked<'a>(&'a self, key: &K) -> &'a str {
self.resolve_unchecked(key)
}
#[cfg_attr(feature = "inline-more", inline)]
fn contains_key(&self, key: &K) -> bool {
self.contains_key(key)
}
#[cfg_attr(feature = "inline-more", inline)]
fn len(&self) -> usize {
self.len()
}
}