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
sourceimpl 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
sourceimpl AsRef<LanguagePackStringValuePluralized> for LanguagePackStringValuePluralized
impl AsRef<LanguagePackStringValuePluralized> for LanguagePackStringValuePluralized
sourcefn as_ref(&self) -> &LanguagePackStringValuePluralized
fn as_ref(&self) -> &LanguagePackStringValuePluralized
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for LanguagePackStringValuePluralized
impl Clone for LanguagePackStringValuePluralized
sourcefn clone(&self) -> LanguagePackStringValuePluralized
fn clone(&self) -> LanguagePackStringValuePluralized
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for LanguagePackStringValuePluralized
impl Default for LanguagePackStringValuePluralized
sourcefn default() -> LanguagePackStringValuePluralized
fn default() -> LanguagePackStringValuePluralized
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LanguagePackStringValuePluralized
impl<'de> Deserialize<'de> for LanguagePackStringValuePluralized
sourcefn 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
impl TDLanguagePackStringValue for LanguagePackStringValuePluralized
Auto Trait Implementations
impl RefUnwindSafe for LanguagePackStringValuePluralized
impl Send for LanguagePackStringValuePluralized
impl Sync for LanguagePackStringValuePluralized
impl Unpin for LanguagePackStringValuePluralized
impl UnwindSafe for LanguagePackStringValuePluralized
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more