pub struct SingleLanguageTranslationMap {
pub bcp47_code: String,
pub translations: HashMap<String, String>,
}Available on crate feature
std only.Fields§
§bcp47_code: String§translations: HashMap<String, String>Implementations§
Source§impl SingleLanguageTranslationMap
impl SingleLanguageTranslationMap
pub fn parse(source_path: &str, input: &str) -> CountriesIso31661Result<Self>
pub fn get_translation(&self, key: &str) -> Option<&String>
pub fn bcp47_code(&self) -> &str
pub fn translations(&self) -> &HashMap<String, String>
pub fn translations_owned(&self) -> Vec<(String, String)>
Trait Implementations§
Source§impl Clone for SingleLanguageTranslationMap
impl Clone for SingleLanguageTranslationMap
Source§fn clone(&self) -> SingleLanguageTranslationMap
fn clone(&self) -> SingleLanguageTranslationMap
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 moreSource§impl Debug for SingleLanguageTranslationMap
impl Debug for SingleLanguageTranslationMap
Source§impl Default for SingleLanguageTranslationMap
impl Default for SingleLanguageTranslationMap
Source§fn default() -> SingleLanguageTranslationMap
fn default() -> SingleLanguageTranslationMap
Returns the “default value” for a type. Read more
impl Eq for SingleLanguageTranslationMap
Source§impl PartialEq for SingleLanguageTranslationMap
impl PartialEq for SingleLanguageTranslationMap
Source§fn eq(&self, other: &SingleLanguageTranslationMap) -> bool
fn eq(&self, other: &SingleLanguageTranslationMap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SingleLanguageTranslationMap
Auto Trait Implementations§
impl Freeze for SingleLanguageTranslationMap
impl RefUnwindSafe for SingleLanguageTranslationMap
impl Send for SingleLanguageTranslationMap
impl Sync for SingleLanguageTranslationMap
impl Unpin for SingleLanguageTranslationMap
impl UnsafeUnpin for SingleLanguageTranslationMap
impl UnwindSafe for SingleLanguageTranslationMap
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