[][src]Trait fluent_bundle::memoizer::MemoizerKind

pub trait MemoizerKind: 'static {
    fn new(lang: LanguageIdentifier) -> Self
    where
        Self: Sized
;
fn with_try_get_threadsafe<I, R, U>(
        &self,
        args: I::Args,
        cb: U
    ) -> Result<R, I::Error>
    where
        Self: Sized,
        I: Memoizable + Send + Sync + 'static,
        I::Args: Send + Sync + 'static,
        U: FnOnce(&I) -> R
;
fn stringify_value(&self, value: &dyn FluentType) -> Cow<'static, str>; }

Required methods

fn new(lang: LanguageIdentifier) -> Self where
    Self: Sized

fn with_try_get_threadsafe<I, R, U>(
    &self,
    args: I::Args,
    cb: U
) -> Result<R, I::Error> where
    Self: Sized,
    I: Memoizable + Send + Sync + 'static,
    I::Args: Send + Sync + 'static,
    U: FnOnce(&I) -> R, 

fn stringify_value(&self, value: &dyn FluentType) -> Cow<'static, str>

Loading content...

Implementations on Foreign Types

impl MemoizerKind for IntlLangMemoizer[src]

impl MemoizerKind for IntlLangMemoizer[src]

Loading content...

Implementors

Loading content...