pub struct NumberFormatDefaults {
pub is_float: bool,
pub style: NumberFormatStyle,
pub notation: Notation,
pub minimum_integer_digits: f64,
pub fraction: (f64, f64),
pub significant: (f64, f64),
pub rounding_priority: RoundingPriority,
pub rounding_mode: RoundingMode,
pub trailing_zero_display: TrailingZeroDisplay,
pub use_grouping: UseGrouping,
pub sign_display: SignDisplay,
}Expand description
The active plugin’s NumberFormat default overlaid on the built-in
number_format values.
Fields§
§is_float: bool§style: NumberFormatStyle§notation: Notation§minimum_integer_digits: f64§fraction: (f64, f64)§significant: (f64, f64)§rounding_priority: RoundingPriority§rounding_mode: RoundingMode§trailing_zero_display: TrailingZeroDisplay§use_grouping: UseGrouping§sign_display: SignDisplayImplementations§
Source§impl NumberFormatDefaults
impl NumberFormatDefaults
pub fn builtin(is_float: bool) -> Self
Sourcepub fn resolve(
spec_default: Option<&CustomNumberFormatConfig>,
is_float: bool,
) -> Self
pub fn resolve( spec_default: Option<&CustomNumberFormatConfig>, is_float: bool, ) -> Self
Overlay a plugin-declared partial default onto Self::builtin.
Trait Implementations§
Source§impl Clone for NumberFormatDefaults
impl Clone for NumberFormatDefaults
Source§fn clone(&self) -> NumberFormatDefaults
fn clone(&self) -> NumberFormatDefaults
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NumberFormatDefaults
impl Debug for NumberFormatDefaults
Source§impl PartialEq for NumberFormatDefaults
impl PartialEq for NumberFormatDefaults
impl StructuralPartialEq for NumberFormatDefaults
Auto Trait Implementations§
impl Freeze for NumberFormatDefaults
impl RefUnwindSafe for NumberFormatDefaults
impl Send for NumberFormatDefaults
impl Sync for NumberFormatDefaults
impl Unpin for NumberFormatDefaults
impl UnsafeUnpin for NumberFormatDefaults
impl UnwindSafe for NumberFormatDefaults
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> HasAllProps<(), T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.