1 use crate::types::FluentType;
2 use intl_memoizer::Memoizable;
3 use unic_langid::LanguageIdentifier;
5 pub trait MemoizerKind: 'static {
6 fn new(lang: LanguageIdentifier) -> Self
10 fn with_try_get_threadsafe<I, R, U>(&self, args: I::Args, cb: U) -> Result<R, I::Error>
13 I: Memoizable + Send + Sync + 'static,
14 I::Args: Send + Sync + 'static,
17 fn stringify_value(&self, value: &dyn FluentType) -> std::borrow::Cow<'static, str>;