pub struct I18nCatalog { /* private fields */ }Expand description
Immutable TeaQL internationalization catalog.
Implementations§
Source§impl I18nCatalog
impl I18nCatalog
pub fn from_json(source: &str) -> Result<Self, RuntimeError>
pub fn builtin() -> &'static Arc<Self> ⓘ
pub fn message(&self, language: Language, key: &str) -> String
pub fn vocabulary(&self, language: Language, key: &str) -> String
pub fn translate_check_result( &self, language: Language, result: &CheckResult, ) -> String
Trait Implementations§
Source§impl Clone for I18nCatalog
impl Clone for I18nCatalog
Source§fn clone(&self) -> I18nCatalog
fn clone(&self) -> I18nCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for I18nCatalog
impl RefUnwindSafe for I18nCatalog
impl Send for I18nCatalog
impl Sync for I18nCatalog
impl Unpin for I18nCatalog
impl UnsafeUnpin for I18nCatalog
impl UnwindSafe for I18nCatalog
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