Struct fluent_bundle::types::FluentNumberOptions
source · pub struct FluentNumberOptions {
pub style: FluentNumberStyle,
pub currency: Option<String>,
pub currency_display: FluentNumberCurrencyDisplayStyle,
pub use_grouping: bool,
pub minimum_integer_digits: Option<usize>,
pub minimum_fraction_digits: Option<usize>,
pub maximum_fraction_digits: Option<usize>,
pub minimum_significant_digits: Option<usize>,
pub maximum_significant_digits: Option<usize>,
}
Fields§
§style: FluentNumberStyle
§currency: Option<String>
§currency_display: FluentNumberCurrencyDisplayStyle
§use_grouping: bool
§minimum_integer_digits: Option<usize>
§minimum_fraction_digits: Option<usize>
§maximum_fraction_digits: Option<usize>
§minimum_significant_digits: Option<usize>
§maximum_significant_digits: Option<usize>
Implementations§
source§impl FluentNumberOptions
impl FluentNumberOptions
pub fn merge(&mut self, opts: &FluentArgs<'_>)
Trait Implementations§
source§impl Clone for FluentNumberOptions
impl Clone for FluentNumberOptions
source§fn clone(&self) -> FluentNumberOptions
fn clone(&self) -> FluentNumberOptions
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 Debug for FluentNumberOptions
impl Debug for FluentNumberOptions
source§impl Default for FluentNumberOptions
impl Default for FluentNumberOptions
source§impl Hash for FluentNumberOptions
impl Hash for FluentNumberOptions
source§impl PartialEq for FluentNumberOptions
impl PartialEq for FluentNumberOptions
source§fn eq(&self, other: &FluentNumberOptions) -> bool
fn eq(&self, other: &FluentNumberOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FluentNumberOptions
impl StructuralPartialEq for FluentNumberOptions
Auto Trait Implementations§
impl Freeze for FluentNumberOptions
impl RefUnwindSafe for FluentNumberOptions
impl Send for FluentNumberOptions
impl Sync for FluentNumberOptions
impl Unpin for FluentNumberOptions
impl UnwindSafe for FluentNumberOptions
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