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