pub struct SingleLanguageTranslationMap {
pub bcp47_code: String,
pub translations: HashMap<String, String>,
}Fields§
§bcp47_code: String§translations: HashMap<String, String>Implementations§
Source§impl SingleLanguageTranslationMap
impl SingleLanguageTranslationMap
pub fn parse(source_path: &str, input: &str) -> CountriesIso31661Result<Self>
Available on crate feature
std only.pub fn get_translation(&self, key: &str) -> Option<&String>
Available on crate feature
std only.pub fn bcp47_code(&self) -> &str
Available on crate feature
std only.pub fn translations(&self) -> &HashMap<String, String>
Available on crate feature
std only.pub fn translations_owned(&self) -> Vec<(String, String)>
Available on crate feature
std only.Trait Implementations§
Source§impl Clone for SingleLanguageTranslationMap
Available on crate feature std only.
impl Clone for SingleLanguageTranslationMap
Available on crate feature
std only.Source§fn clone(&self) -> SingleLanguageTranslationMap
fn clone(&self) -> SingleLanguageTranslationMap
Returns a duplicate of the value. Read more
1.0.0 · 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
Available on crate feature std only.
impl Debug for SingleLanguageTranslationMap
Available on crate feature
std only.Source§impl PartialEq for SingleLanguageTranslationMap
Available on crate feature std only.
impl PartialEq for SingleLanguageTranslationMap
Available on crate feature
std only.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 Eq for SingleLanguageTranslationMap
Available on crate feature
std only.impl StructuralPartialEq for SingleLanguageTranslationMap
Available on crate feature
std only.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