Enum NSNumberFormatterStyle

Source
#[repr(u64)]
pub enum NSNumberFormatterStyle { None = 0, Decimal = 1, Currency = 2, Percent = 3, Scientific = 4, SpellOut = 5, OrdinalStyle = 6, CurrencyIsoCodeStyle = 8, CurrencyPluralStyle = 9, CurrencyAccountingStyle = 10, }

Variants§

§

None = 0

An integer representation.

§

Decimal = 1

A decimal style format.

§

Currency = 2

A currency style format that uses the currency symbol defined by the number formatter locale.

§

Percent = 3

A percent style format.

§

Scientific = 4

A scientific style format.

§

SpellOut = 5

A style format in which numbers are spelled out in the language defined by the number formatter locale.

§

OrdinalStyle = 6

An ordinal style format.

§

CurrencyIsoCodeStyle = 8

A currency style format that uses the ISO 4217 currency code defined by the number formatter locale.

§

CurrencyPluralStyle = 9

A currency style format that uses the pluralized denomination defined by the number formatter locale.

§

CurrencyAccountingStyle = 10

An accounting currency style format that uses the currency symbol defined by the number formatter locale.

Trait Implementations§

Source§

impl Debug for NSNumberFormatterStyle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.