Struct NumberRangeFormatPart

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

A part of the formatted number range returned by formatRangeToParts().

Extends NumberFormatPart with a source property indicating whether the part is from the start number, end number, or shared between them.

MDN documentation

Implementations

impl NumberRangeFormatPart

fn source(&self) -> RangeSource

The source of the part: "startRange", "endRange", or "shared".

Trait Implementations

impl AsRef<JsValue> for NumberRangeFormatPart

fn as_ref(&self) -> &JsValue

impl AsRef<NumberFormatPart> for NumberRangeFormatPart

fn as_ref(&self) -> &NumberFormatPart

impl AsRef<NumberRangeFormatPart> for NumberRangeFormatPart

fn as_ref(&self) -> &NumberRangeFormatPart

impl Clone for NumberRangeFormatPart

fn clone(&self) -> Self

impl Debug for NumberRangeFormatPart

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

impl Deref for NumberRangeFormatPart

type Target = NumberFormatPart;
fn deref(&self) -> &NumberFormatPart

impl ErasableGeneric for NumberRangeFormatPart

type Repr = JsValue;

impl From<JsValue> for NumberRangeFormatPart

fn from(obj: JsValue) -> Self

impl FromWasmAbi for NumberRangeFormatPart

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl IntoJsGeneric for NumberRangeFormatPart where NumberRangeFormatPart: JsGeneric,

type JsCanon = NumberRangeFormatPart;
fn to_js(self) -> NumberRangeFormatPart

impl IntoWasmAbi for NumberRangeFormatPart

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl JsCast for NumberRangeFormatPart

fn instanceof(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self

impl LongRefFromWasmAbi for NumberRangeFormatPart

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = NumberRangeFormatPart;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl OptionFromWasmAbi for NumberRangeFormatPart

fn is_none(abi: &Self::Abi) -> bool

impl OptionIntoWasmAbi for NumberRangeFormatPart

fn none() -> Self::Abi

impl Promising for NumberRangeFormatPart

type Resolution = NumberRangeFormatPart;

impl RefFromWasmAbi for NumberRangeFormatPart

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<NumberRangeFormatPart>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl UpcastFrom<NumberRangeFormatPart> for NumberRangeFormatPart

impl WasmDescribe for NumberRangeFormatPart

fn describe()

Auto Trait Implementations

impl Freeze for NumberRangeFormatPart

impl RefUnwindSafe for NumberRangeFormatPart

impl Send for NumberRangeFormatPart

impl Sync for NumberRangeFormatPart

impl Unpin for NumberRangeFormatPart

impl UnsafeUnpin for NumberRangeFormatPart

impl UnwindSafe for NumberRangeFormatPart

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for NumberRangeFormatPart

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

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

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

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

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

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

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

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

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

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