pub struct LanguagePackStringValuePluralized { /* private fields */ }
Expand description
A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
Implementations§
source§impl LanguagePackStringValuePluralized
impl LanguagePackStringValuePluralized
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> LanguagePackStringValuePluralizedBuilder
pub fn zero_value(&self) -> &String
pub fn one_value(&self) -> &String
pub fn two_value(&self) -> &String
pub fn few_value(&self) -> &String
pub fn many_value(&self) -> &String
pub fn other_value(&self) -> &String
Trait Implementations§
source§impl AsRef<LanguagePackStringValuePluralized> for LanguagePackStringValuePluralized
impl AsRef<LanguagePackStringValuePluralized> for LanguagePackStringValuePluralized
source§fn as_ref(&self) -> &LanguagePackStringValuePluralized
fn as_ref(&self) -> &LanguagePackStringValuePluralized
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for LanguagePackStringValuePluralized
impl Clone for LanguagePackStringValuePluralized
source§fn clone(&self) -> LanguagePackStringValuePluralized
fn clone(&self) -> LanguagePackStringValuePluralized
Returns a copy 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 Default for LanguagePackStringValuePluralized
impl Default for LanguagePackStringValuePluralized
source§fn default() -> LanguagePackStringValuePluralized
fn default() -> LanguagePackStringValuePluralized
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LanguagePackStringValuePluralized
impl<'de> Deserialize<'de> for LanguagePackStringValuePluralized
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more