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.
Implementations
impl NumberRangeFormatPart
fn source(&self) -> RangeSourceThe 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) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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()