pub struct Lookup { /* private fields */ }
Expand description
Implements localized string lookup.
Requires that the ICU data loader is configured and that the ICU data are registered in the program’s package. See the rust documentation for detailed instructions.
ⓘ
use intl_lookup::Lookup;
let icu_data = icu_data::Loader::new().expect("icu data loaded");
let l = Lookup::new(icu_data, &vec!["es"])?;
assert_eq!("el stringo", l.str(ftest::MessageIds::StringName as u64)?);
Implementations§
Auto Trait Implementations§
impl Freeze for Lookup
impl RefUnwindSafe for Lookup
impl Send for Lookup
impl Sync for Lookup
impl Unpin for Lookup
impl UnwindSafe for Lookup
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