Struct NumberFormatPart

#[repr(transparent)]
pub struct NumberFormatPart { /* private fields */ }

A part of the formatted number returned by formatToParts().

MDN documentation

Implementations

impl NumberFormatPart

fn type_(&self) -> NumberFormatPartType

The type of the part (e.g., "integer", "decimal", "fraction", "currency", etc.)

impl NumberFormatPart

fn value(&self) -> JsString

The 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) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn 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()

Auto Trait Implementations

impl Freeze for NumberFormatPart

impl RefUnwindSafe for NumberFormatPart

impl Send for NumberFormatPart

impl Sync for NumberFormatPart

impl Unpin for NumberFormatPart

impl UnsafeUnpin for NumberFormatPart

impl UnwindSafe for NumberFormatPart

Blanket Implementations

impl<P, T> Receiver for NumberFormatPart where P: Deref<Target = T> + ?Sized, T: ?Sized,

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

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

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

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

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

impl<T> From<T> for NumberFormatPart

impl<T> JsGeneric for NumberFormatPart where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

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

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

impl<T> TryFromJsValue for NumberFormatPart where T: JsCast,

impl<T> VectorFromWasmAbi for NumberFormatPart where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for NumberFormatPart where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for NumberFormatPart where &'a T: for<'a> Into<JsValue>,

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

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

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