Struct NumberFormatPart
#[repr(transparent)]
pub struct NumberFormatPart { /* private fields */ }
A part of the formatted number returned by formatToParts().
Implementations
impl NumberFormatPart
fn type_(&self) -> NumberFormatPartTypeThe type of the part (e.g., "integer", "decimal", "fraction", "currency", etc.)
impl NumberFormatPart
fn value(&self) -> JsStringThe value of the part.
Trait Implementations
impl AsRef<JsValue> for NumberFormatPart
fn as_ref(&self) -> &JsValue
impl AsRef<NumberFormatPart> for NumberFormatPart
fn as_ref(&self) -> &NumberFormatPart
impl AsRef<Object> for NumberFormatPart
fn as_ref(&self) -> &Object
impl Clone for NumberFormatPart
fn clone(&self) -> Self
impl Debug for NumberFormatPart
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for NumberFormatPart
type Target = Object;fn deref(&self) -> &Object
impl ErasableGeneric for NumberFormatPart
type Repr = JsValue;
impl From<JsValue> for NumberFormatPart
fn from(obj: JsValue) -> Self
impl From<NumberRangeFormatPart> for NumberFormatPart
fn from(obj: NumberRangeFormatPart) -> NumberFormatPart
impl FromWasmAbi for NumberFormatPart
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for NumberFormatPart
where
NumberFormatPart: JsGeneric,
type JsCanon = NumberFormatPart;fn to_js(self) -> NumberFormatPart
impl IntoWasmAbi for NumberFormatPart
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for NumberFormatPart
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for NumberFormatPart
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = NumberFormatPart;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for NumberFormatPart
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for NumberFormatPart
fn none() -> Self::Abi
impl Promising for NumberFormatPart
type Resolution = NumberFormatPart;
impl RefFromWasmAbi for NumberFormatPart
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<NumberFormatPart>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl UpcastFrom<NumberFormatPart> for NumberFormatPart
impl UpcastFrom<NumberRangeFormatPart> for NumberFormatPart
impl WasmDescribe for NumberFormatPart
fn describe()