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.
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()