Struct oxygengine_core::localization::Localization [−][src]
pub struct Localization { /* fields omitted */ }
Implementations
impl Localization
[src]
impl Localization
[src]pub fn default_language(&self) -> Option<&str>
[src]
pub fn set_default_language(&mut self, value: Option<String>)
[src]
pub fn current_language(&self) -> Option<&str>
[src]
pub fn set_current_language(&mut self, value: Option<String>)
[src]
pub fn add_text(&mut self, id: &str, language: &str, text_format: &str)
[src]
pub fn remove_text(&mut self, id: &str, language: &str) -> bool
[src]
pub fn remove_text_all(&mut self, id: &str) -> bool
[src]
pub fn remove_language(&mut self, lang: &str)
[src]
pub fn find_text_format(&self, id: &str) -> Option<&str>
[src]
pub fn format_text(
&self,
id: &str,
params: &[(&str, &str)]
) -> Result<String, String>
[src]
&self,
id: &str,
params: &[(&str, &str)]
) -> Result<String, String>
Trait Implementations
impl Default for Localization
[src]
impl Default for Localization
[src]fn default() -> Localization
[src]
Auto Trait Implementations
impl RefUnwindSafe for Localization
impl RefUnwindSafe for Localization
impl Send for Localization
impl Send for Localization
impl Sync for Localization
impl Sync for Localization
impl Unpin for Localization
impl Unpin for Localization
impl UnwindSafe for Localization
impl UnwindSafe for Localization
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
impl<T> TryDefault for T where
T: Default,
[src]
impl<T> TryDefault for T where
T: Default,
[src]