Struct ecma402_traits::pluralrules::Options
source · pub struct Options {
pub in_type: Type,
pub minimum_integer_digits: u8,
pub minimum_fraction_digits: u8,
pub maximum_fraction_digits: u8,
pub minimum_significant_digits: u8,
pub maximum_significant_digits: u8,
}
Expand description
The options set by the user at construction time. See discussion at the top level about the name choice. Provides as a “bag of options” since we don’t expect any implementations to be attached to this struct.
The default values of all the options are prescribed in by the TC39 report.
Fields§
§in_type: Type
Selects a options::Type for the formatted list. If unset, defaults to options::Type::Cardinal.
minimum_integer_digits: u8
§minimum_fraction_digits: u8
§maximum_fraction_digits: u8
§minimum_significant_digits: u8
§maximum_significant_digits: u8
Trait Implementations§
source§impl Default for Options
impl Default for Options
Allows the use of pluralrules::Rules::try_new(..., Default::default())
.
source§fn default() -> Self
fn default() -> Self
Gets the default values of Options if omitted at setup. The default values are prescribed in by the TC39 report.
source§impl PartialEq for Options
impl PartialEq for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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