#[non_exhaustive]pub enum FormattedNumberFormat {
Decimal,
Currency,
Percent,
Unit,
}Expand description
Number style for FormattedNumber: the Intl.NumberFormat style option.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decimal
A plain number, such as “1,234.5”.
Currency
Money in the given currency, such as “$1,234.50”. Formats as Decimal without a valid code.
Percent
A ratio shown as a percentage, so 0.25 reads “25%”.
Unit
A measurement in the given unit, such as “16 km/h”. Formats as Decimal without a unit.
Implementations§
Trait Implementations§
Source§impl Clone for FormattedNumberFormat
impl Clone for FormattedNumberFormat
impl Copy for FormattedNumberFormat
Source§impl Debug for FormattedNumberFormat
impl Debug for FormattedNumberFormat
Source§impl Default for FormattedNumberFormat
impl Default for FormattedNumberFormat
impl Eq for FormattedNumberFormat
Source§impl PartialEq for FormattedNumberFormat
impl PartialEq for FormattedNumberFormat
impl StructuralPartialEq for FormattedNumberFormat
Auto Trait Implementations§
impl Forget for FormattedNumberFormat
impl Freeze for FormattedNumberFormat
impl Move for FormattedNumberFormat
impl RefUnwindSafe for FormattedNumberFormat
impl Send for FormattedNumberFormat
impl Sync for FormattedNumberFormat
impl Unpin for FormattedNumberFormat
impl UnsafeUnpin for FormattedNumberFormat
impl UnwindSafe for FormattedNumberFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.