pub struct LanguagePackStringValuePluralized {
pub zero_value: String,
pub one_value: String,
pub two_value: String,
pub few_value: String,
pub many_value: String,
pub other_value: String,
}
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 information
Fields§
§zero_value: String
Value for zero objects
one_value: String
Value for one object
two_value: String
Value for two objects
few_value: String
Value for few objects
many_value: String
Value for many objects
other_value: String
Default value
Trait Implementations§
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
Source§impl PartialEq for LanguagePackStringValuePluralized
impl PartialEq for LanguagePackStringValuePluralized
Source§fn eq(&self, other: &LanguagePackStringValuePluralized) -> bool
fn eq(&self, other: &LanguagePackStringValuePluralized) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq 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