pub struct MLURef(/* private fields */);
Expand description
A borrowed reference to a MLU
.
Implementations§
source§impl MLURef
impl 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
source§impl ForeignTypeRef for MLURef
impl ForeignTypeRef for MLURef
Auto Trait Implementations§
impl !RefUnwindSafe for MLURef
impl !Send for MLURef
impl !Sync for MLURef
impl Unpin for MLURef
impl UnwindSafe for MLURef
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