pub struct LanguageStore { /* private fields */ }Implementations§
Source§impl LanguageStore
impl LanguageStore
pub fn new() -> Self
Sourcepub fn load_ini(&mut self, language: LanguageId, text: &str)
pub fn load_ini(&mut self, language: LanguageId, text: &str)
Load a C++ language .ini text file.
Lines shaped as numeric_key=value start or replace one entry. A line
without a numeric key is appended to the previous entry with a newline,
matching C++ multiline behavior.
pub fn translate_key( &self, language: LanguageId, key: u32, fallback: Option<&str>, allow_english_fallback: bool, ) -> Option<String>
pub fn translate_key_with_template( &self, language: LanguageId, key: u32, fallback: Option<&str>, allow_english_fallback: bool, template: &BTreeMap<String, String>, ) -> Option<String>
Trait Implementations§
Source§impl Clone for LanguageStore
impl Clone for LanguageStore
Source§fn clone(&self) -> LanguageStore
fn clone(&self) -> LanguageStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguageStore
impl Debug for LanguageStore
Source§impl Default for LanguageStore
impl Default for LanguageStore
Source§fn default() -> LanguageStore
fn default() -> LanguageStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LanguageStore
impl RefUnwindSafe for LanguageStore
impl Send for LanguageStore
impl Sync for LanguageStore
impl Unpin for LanguageStore
impl UnsafeUnpin for LanguageStore
impl UnwindSafe for LanguageStore
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