[−][src]Struct oxygengine_core::localization::Localization
{ text id: { language: text format } }
Methods
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]
fn default() -> Localization
[src]
Auto Trait Implementations
impl RefUnwindSafe for Localization
impl Send for Localization
impl Sync for Localization
impl Unpin for Localization
impl UnwindSafe for Localization
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,