Struct DurationFormatPart
#[repr(transparent)]
pub struct DurationFormatPart { /* private fields */ }
A part of the formatted duration returned by formatToParts().
Implementations
impl DurationFormatPart
fn unit(&self) -> Option<JsString>The unit this part represents (if applicable).
impl DurationFormatPart
fn type_(&self) -> DurationFormatPartTypeThe type of the part.
impl DurationFormatPart
fn value(&self) -> JsStringThe value of the part.
Trait Implementations
impl AsRef<DurationFormatPart> for DurationFormatPart
fn as_ref(&self) -> &DurationFormatPart
impl AsRef<JsValue> for DurationFormatPart
fn as_ref(&self) -> &JsValue
impl AsRef<Object> for DurationFormatPart
fn as_ref(&self) -> &Object
impl Clone for DurationFormatPart
fn clone(&self) -> Self
impl Debug for DurationFormatPart
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for DurationFormatPart
type Target = Object;fn deref(&self) -> &Object
impl ErasableGeneric for DurationFormatPart
type Repr = JsValue;
impl From<JsValue> for DurationFormatPart
fn from(obj: JsValue) -> Self
impl FromWasmAbi for DurationFormatPart
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for DurationFormatPart
where
DurationFormatPart: JsGeneric,
type JsCanon = DurationFormatPart;fn to_js(self) -> DurationFormatPart
impl IntoWasmAbi for DurationFormatPart
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for DurationFormatPart
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for DurationFormatPart
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = DurationFormatPart;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for DurationFormatPart
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for DurationFormatPart
fn none() -> Self::Abi
impl Promising for DurationFormatPart
type Resolution = DurationFormatPart;
impl RefFromWasmAbi for DurationFormatPart
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<DurationFormatPart>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl UpcastFrom<DurationFormatPart> for DurationFormatPart
impl WasmDescribe for DurationFormatPart
fn describe()