Struct intl_memoizer::concurrent::IntlLangMemoizer
source · pub struct IntlLangMemoizer { /* private fields */ }
Expand description
A thread-safe version of the intl_memoizer::IntlLangMemoizer
.
See the single-thread version for more documentation.
Implementations§
source§impl IntlLangMemoizer
impl IntlLangMemoizer
sourcepub fn new(lang: LanguageIdentifier) -> Self
pub fn new(lang: LanguageIdentifier) -> Self
Create a new IntlLangMemoizer
that is unique to a specific LanguageIdentifier
sourcepub fn with_try_get<I, R, U>(&self, args: I::Args, cb: U) -> Result<R, I::Error>
pub fn with_try_get<I, R, U>(&self, args: I::Args, cb: U) -> Result<R, I::Error>
Lazily initialize and run a formatter. See
intl_memoizer::IntlLangMemoizer::with_try_get
for documentation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IntlLangMemoizer
impl RefUnwindSafe for IntlLangMemoizer
impl Send for IntlLangMemoizer
impl Sync for IntlLangMemoizer
impl Unpin for IntlLangMemoizer
impl UnwindSafe for IntlLangMemoizer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more