pub struct PluralRulesCategoryMapping<'data> {
pub zero: Option<SingularSubPattern<'data>>,
pub one: Option<SingularSubPattern<'data>>,
pub two: Option<SingularSubPattern<'data>>,
pub few: Option<SingularSubPattern<'data>>,
pub many: Option<SingularSubPattern<'data>>,
pub other: SingularSubPattern<'data>,
}
Expand description
Display specification for relative times, split over potential plural patterns.
Fields§
§zero: Option<SingularSubPattern<'data>>
Mapping for PluralCategory::Zero or None
if not present.
one: Option<SingularSubPattern<'data>>
Mapping for PluralCategory::One or None
if not present.
two: Option<SingularSubPattern<'data>>
Mapping for PluralCategory::Two or None
if not present.
few: Option<SingularSubPattern<'data>>
Mapping for PluralCategory::Few or None
if not present.
many: Option<SingularSubPattern<'data>>
Mapping for PluralCategory::Many or None
if not present.
other: SingularSubPattern<'data>
Mapping for PluralCategory::Other
Trait Implementations§
source§impl<'data> Bake for PluralRulesCategoryMapping<'data>
impl<'data> Bake for PluralRulesCategoryMapping<'data>
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl<'data> Clone for PluralRulesCategoryMapping<'data>
impl<'data> Clone for PluralRulesCategoryMapping<'data>
source§fn clone(&self) -> PluralRulesCategoryMapping<'data>
fn clone(&self) -> PluralRulesCategoryMapping<'data>
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<'data> Debug for PluralRulesCategoryMapping<'data>
impl<'data> Debug for PluralRulesCategoryMapping<'data>
source§impl<'data> Default for PluralRulesCategoryMapping<'data>
impl<'data> Default for PluralRulesCategoryMapping<'data>
source§fn default() -> PluralRulesCategoryMapping<'data>
fn default() -> PluralRulesCategoryMapping<'data>
Returns the “default value” for a type. Read more
source§impl<'de: 'data, 'data> Deserialize<'de> for PluralRulesCategoryMapping<'data>
impl<'de: 'data, 'data> Deserialize<'de> for PluralRulesCategoryMapping<'data>
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<'data> PartialEq<PluralRulesCategoryMapping<'data>> for PluralRulesCategoryMapping<'data>
impl<'data> PartialEq<PluralRulesCategoryMapping<'data>> for PluralRulesCategoryMapping<'data>
source§fn eq(&self, other: &PluralRulesCategoryMapping<'data>) -> bool
fn eq(&self, other: &PluralRulesCategoryMapping<'data>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'data> Serialize for PluralRulesCategoryMapping<'data>
impl<'data> Serialize for PluralRulesCategoryMapping<'data>
source§impl<'a> Yokeable<'a> for PluralRulesCategoryMapping<'static>
impl<'a> Yokeable<'a> for PluralRulesCategoryMapping<'static>
§type Output = PluralRulesCategoryMapping<'a>
type Output = PluralRulesCategoryMapping<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
source§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
This method can be used to cast away
Self<'a>
’s lifetime. Read moresource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F)where F: 'static + for<'b> FnOnce(&'b mut Self::Output),
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moresource§impl<'zf, 'zf_inner> ZeroFrom<'zf, PluralRulesCategoryMapping<'zf_inner>> for PluralRulesCategoryMapping<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, PluralRulesCategoryMapping<'zf_inner>> for PluralRulesCategoryMapping<'zf>
source§fn zero_from(this: &'zf PluralRulesCategoryMapping<'zf_inner>) -> Self
fn zero_from(this: &'zf PluralRulesCategoryMapping<'zf_inner>) -> Self
Clone the other
C
into a struct that may retain references into C
.