Struct DateTimeFormatPart
#[repr(transparent)]
pub struct DateTimeFormatPart { /* private fields */ }
A part of the formatted date returned by formatToParts().
Implementations
impl DateTimeFormatPart
fn type_(&self) -> DateTimeFormatPartTypeThe type of the part (e.g., "day", "month", "year", "literal", etc.)
impl DateTimeFormatPart
fn value(&self) -> JsStringThe 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) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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()