[][src]Struct oxygengine_core::localization::Localization

pub struct Localization { /* fields omitted */ }

{ 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]

Trait Implementations

impl Default for Localization[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> TryDefault for T where
    T: Default
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,