Struct DateTimeRangeFormatPart
#[repr(transparent)]
pub struct DateTimeRangeFormatPart { /* private fields */ }
A part of the formatted date range returned by formatRangeToParts().
Extends DateTimeFormatPart with a source property indicating whether
the part is from the start date, end date, or shared between them.
Implementations
impl DateTimeRangeFormatPart
fn source(&self) -> RangeSourceThe source of the part: "startRange", "endRange", or "shared".
Trait Implementations
impl AsRef<DateTimeFormatPart> for DateTimeRangeFormatPart
fn as_ref(&self) -> &DateTimeFormatPart
impl AsRef<DateTimeRangeFormatPart> for DateTimeRangeFormatPart
fn as_ref(&self) -> &DateTimeRangeFormatPart
impl AsRef<JsValue> for DateTimeRangeFormatPart
fn as_ref(&self) -> &JsValue
impl Clone for DateTimeRangeFormatPart
fn clone(&self) -> Self
impl Debug for DateTimeRangeFormatPart
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for DateTimeRangeFormatPart
type Target = DateTimeFormatPart;fn deref(&self) -> &DateTimeFormatPart
impl ErasableGeneric for DateTimeRangeFormatPart
type Repr = JsValue;
impl From<JsValue> for DateTimeRangeFormatPart
fn from(obj: JsValue) -> Self
impl FromWasmAbi for DateTimeRangeFormatPart
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for DateTimeRangeFormatPart
where
DateTimeRangeFormatPart: JsGeneric,
type JsCanon = DateTimeRangeFormatPart;fn to_js(self) -> DateTimeRangeFormatPart
impl IntoWasmAbi for DateTimeRangeFormatPart
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for DateTimeRangeFormatPart
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for DateTimeRangeFormatPart
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = DateTimeRangeFormatPart;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for DateTimeRangeFormatPart
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for DateTimeRangeFormatPart
fn none() -> Self::Abi
impl Promising for DateTimeRangeFormatPart
type Resolution = DateTimeRangeFormatPart;
impl RefFromWasmAbi for DateTimeRangeFormatPart
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<DateTimeRangeFormatPart>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl UpcastFrom<DateTimeRangeFormatPart> for DateTimeRangeFormatPart
impl WasmDescribe for DateTimeRangeFormatPart
fn describe()