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.

MDN documentation

Implementations

impl DateTimeRangeFormatPart

fn source(&self) -> RangeSource

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

Auto Trait Implementations

impl Freeze for DateTimeRangeFormatPart

impl RefUnwindSafe for DateTimeRangeFormatPart

impl Send for DateTimeRangeFormatPart

impl Sync for DateTimeRangeFormatPart

impl Unpin for DateTimeRangeFormatPart

impl UnsafeUnpin for DateTimeRangeFormatPart

impl UnwindSafe for DateTimeRangeFormatPart

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for DateTimeRangeFormatPart

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

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

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

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

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

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

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

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

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

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