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
impl TDLanguagePackStringValue for LanguagePackStringValuePluralized
Auto Trait Implementations§
impl Freeze for LanguagePackStringValuePluralized
impl RefUnwindSafe for LanguagePackStringValuePluralized
impl Send for LanguagePackStringValuePluralized
impl Sync for LanguagePackStringValuePluralized
impl Unpin for LanguagePackStringValuePluralized
impl UnwindSafe for LanguagePackStringValuePluralized
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