pub struct MLU(/* private fields */);
Expand description
This represents owned Multi Localized Unicode type. Most methods are implemented on MLURef
.
This is a borrwed Multi Localized Unicode type. It holds Unicode strings associated with Locale
.
Implementations§
Methods from Deref<Target = MLURef>§
sourcepub fn set_text_ascii(&mut self, text: &str, locale: Locale) -> bool
pub fn set_text_ascii(&mut self, text: &str, locale: Locale) -> bool
Fills an ASCII (7 bit) entry for the given Language and country.
sourcepub fn set_text(&mut self, text: &str, locale: Locale) -> bool
pub fn set_text(&mut self, text: &str, locale: Locale) -> bool
Fills a UNICODE wide char (16 bit) entry for the given Language and country.
sourcepub fn text_ascii(&self, locale: Locale) -> LCMSResult<String>
pub fn text_ascii(&self, locale: Locale) -> LCMSResult<String>
Gets an ASCII (7 bit) entry for the given Language and country.
sourcepub fn text(&self, locale: Locale) -> LCMSResult<String>
pub fn text(&self, locale: Locale) -> LCMSResult<String>
Gets a Unicode entry for the given Language and country
sourcepub fn tanslations(&self) -> Vec<Locale>
pub fn tanslations(&self) -> Vec<Locale>
Obtains the translations stored in a given multilocalized unicode object.
sourcepub fn tanslation(&self, locale: Locale) -> LCMSResult<Locale>
pub fn tanslation(&self, locale: Locale) -> LCMSResult<Locale>
Obtains the translation rule for given multilocalized unicode object.
Trait Implementations§
source§impl BorrowMut<MLURef> for MLU
impl BorrowMut<MLURef> for MLU
source§fn borrow_mut(&mut self) -> &mut MLURef
fn borrow_mut(&mut self) -> &mut MLURef
Mutably borrows from an owned value. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MLU
impl !Send for MLU
impl !Sync for MLU
impl Unpin for MLU
impl UnwindSafe for MLU
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