pub struct PluralOperands {
pub n: f64,
pub i: u64,
pub v: usize,
pub w: usize,
pub f: u64,
pub t: u64,
}Expand description
A full plural operands representation of a number. See CLDR Plural Rules for complete operands description.
Fields§
§n: f64Absolute value of input
i: u64Integer value of input
v: usizeNumber of visible fraction digits with trailing zeros
w: usizeNumber of visible fraction digits without trailing zeros
f: u64Visible fraction digits with trailing zeros
t: u64Visible fraction digits without trailing zeros
Trait Implementations§
Source§impl Debug for PluralOperands
impl Debug for PluralOperands
Source§impl From<u16> for PluralOperands
impl From<u16> for PluralOperands
Source§impl From<u32> for PluralOperands
impl From<u32> for PluralOperands
Source§impl From<u64> for PluralOperands
impl From<u64> for PluralOperands
Source§impl From<u8> for PluralOperands
impl From<u8> for PluralOperands
Source§impl From<usize> for PluralOperands
impl From<usize> for PluralOperands
Source§impl PartialEq for PluralOperands
impl PartialEq for PluralOperands
Source§fn eq(&self, other: &PluralOperands) -> bool
fn eq(&self, other: &PluralOperands) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> TryFrom<&'a str> for PluralOperands
impl<'a> TryFrom<&'a str> for PluralOperands
Source§impl TryFrom<String> for PluralOperands
impl TryFrom<String> for PluralOperands
Source§impl TryFrom<f32> for PluralOperands
impl TryFrom<f32> for PluralOperands
Source§impl TryFrom<f64> for PluralOperands
impl TryFrom<f64> for PluralOperands
Source§impl TryFrom<i16> for PluralOperands
impl TryFrom<i16> for PluralOperands
Source§impl TryFrom<i32> for PluralOperands
impl TryFrom<i32> for PluralOperands
Source§impl TryFrom<i64> for PluralOperands
impl TryFrom<i64> for PluralOperands
Source§impl TryFrom<i8> for PluralOperands
impl TryFrom<i8> for PluralOperands
Source§impl TryFrom<isize> for PluralOperands
impl TryFrom<isize> for PluralOperands
impl StructuralPartialEq for PluralOperands
Auto Trait Implementations§
impl Freeze for PluralOperands
impl RefUnwindSafe for PluralOperands
impl Send for PluralOperands
impl Sync for PluralOperands
impl Unpin for PluralOperands
impl UnsafeUnpin for PluralOperands
impl UnwindSafe for PluralOperands
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