Enum UseGrouping

#[non_exhaustive]
#[repr(u32)]
pub enum UseGrouping

Use grouping option for Intl.NumberFormat.

Determines whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.

The default is Min2 if notation is "compact", and Auto otherwise.

Note: The string values "true" and "false" are accepted by JavaScript but are always converted to the default value. Use True and False variants for the boolean behavior.

MDN documentation

Variants

Always = 0u32
Auto = 1u32
Min2 = 2u32
True = 3u32
False = 4u32

Implementations

impl UseGrouping

fn from_js_value(obj: &JsValue) -> Option<UseGrouping>

Trait Implementations

impl Clone for UseGrouping

fn clone(&self) -> Self

impl Copy for UseGrouping

impl Debug for UseGrouping

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

impl Eq for UseGrouping

impl FromWasmAbi for UseGrouping

type Abi = u32;
unsafe fn from_abi(val: u32) -> Self

impl IntoWasmAbi for UseGrouping

type Abi = u32;
fn into_abi(self) -> u32

impl OptionFromWasmAbi for UseGrouping

fn is_none(val: &u32) -> bool

impl OptionIntoWasmAbi for UseGrouping

fn none() -> Self::Abi

impl PartialEq for UseGrouping

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for UseGrouping

impl WasmDescribe for UseGrouping

fn describe()

Auto Trait Implementations

impl Freeze for UseGrouping

impl RefUnwindSafe for UseGrouping

impl Send for UseGrouping

impl Sync for UseGrouping

impl Unpin for UseGrouping

impl UnsafeUnpin for UseGrouping

impl UnwindSafe for UseGrouping

Blanket Implementations

impl<S, T> Upcast<T> for UseGrouping where T: UpcastFrom<S> + ?Sized, S: ?Sized,

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

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

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

impl<T> CloneToUninit for UseGrouping where T: Clone,

impl<T> From<T> for UseGrouping

impl<T> ReturnWasmAbi for UseGrouping where T: IntoWasmAbi,

impl<T> ToOwned for UseGrouping where T: Clone,

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

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

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