Struct DateTimeFormatPart

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

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

MDN documentation

Implementations

impl DateTimeFormatPart

fn type_(&self) -> DateTimeFormatPartType

The type of the part (e.g., "day", "month", "year", "literal", etc.)

impl DateTimeFormatPart

fn value(&self) -> JsString

The value of the part.

Trait Implementations

impl AsRef<DateTimeFormatPart> for DateTimeFormatPart

fn as_ref(&self) -> &DateTimeFormatPart

impl AsRef<JsValue> for DateTimeFormatPart

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for DateTimeFormatPart

fn as_ref(&self) -> &Object

impl Clone for DateTimeFormatPart

fn clone(&self) -> Self

impl Debug for DateTimeFormatPart

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

impl Deref for DateTimeFormatPart

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

impl ErasableGeneric for DateTimeFormatPart

type Repr = JsValue;

impl From<DateTimeRangeFormatPart> for DateTimeFormatPart

fn from(obj: DateTimeRangeFormatPart) -> DateTimeFormatPart

impl From<JsValue> for DateTimeFormatPart

fn from(obj: JsValue) -> Self

impl FromWasmAbi for DateTimeFormatPart

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

impl IntoJsGeneric for DateTimeFormatPart where DateTimeFormatPart: JsGeneric,

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

impl IntoWasmAbi for DateTimeFormatPart

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

impl JsCast for DateTimeFormatPart

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

impl LongRefFromWasmAbi for DateTimeFormatPart

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

impl OptionFromWasmAbi for DateTimeFormatPart

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

impl OptionIntoWasmAbi for DateTimeFormatPart

fn none() -> Self::Abi

impl Promising for DateTimeFormatPart

type Resolution = DateTimeFormatPart;

impl RefFromWasmAbi for DateTimeFormatPart

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

impl UpcastFrom<DateTimeFormatPart> for DateTimeFormatPart

impl UpcastFrom<DateTimeRangeFormatPart> for DateTimeFormatPart

impl WasmDescribe for DateTimeFormatPart

fn describe()

Auto Trait Implementations

impl Freeze for DateTimeFormatPart

impl RefUnwindSafe for DateTimeFormatPart

impl Send for DateTimeFormatPart

impl Sync for DateTimeFormatPart

impl Unpin for DateTimeFormatPart

impl UnsafeUnpin for DateTimeFormatPart

impl UnwindSafe for DateTimeFormatPart

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for DateTimeFormatPart

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

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

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

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

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

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

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

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

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

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