// This file is part of ICU4X. For terms of use, please see the file
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
//! Options for [`FixedDecimalFormatter`](crate::FixedDecimalFormatter).
/// A bag of options defining how numbers will be formatted by
/// [`FixedDecimalFormatter`](crate::FixedDecimalFormatter).
/// Configuration for how often to render grouping separators.
///
/// # Examples
///
/// ```
/// use icu_decimal::options;
/// use icu_decimal::FixedDecimalFormatter;
/// use icu_decimal::FormattedFixedDecimal;
/// use icu_locid::Locale;
/// use writeable::assert_writeable_eq;
///
/// let locale = Locale::UND;
/// let mut options: options::FixedDecimalFormatterOptions = Default::default();
/// options.grouping_strategy = options::GroupingStrategy::Min2;
/// let fdf = FixedDecimalFormatter::try_new_unstable(
/// &icu_testdata::unstable(),
/// &locale.into(),
/// options,
/// )
/// .expect("Data should load successfully");
///
/// let one_thousand = 1000.into();
/// assert_writeable_eq!(fdf.format(&one_thousand), "1000");
///
/// let ten_thousand = 10000.into();
/// assert_writeable_eq!(fdf.format(&ten_thousand), "10,000");
/// ```