Struct DurationFormatPart

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

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

MDN documentation

Implementations

impl DurationFormatPart

fn unit(&self) -> Option<JsString>

The unit this part represents (if applicable).

impl DurationFormatPart

fn type_(&self) -> DurationFormatPartType

The type of the part.

impl DurationFormatPart

fn value(&self) -> JsString

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

Auto Trait Implementations

impl Freeze for DurationFormatPart

impl RefUnwindSafe for DurationFormatPart

impl Send for DurationFormatPart

impl Sync for DurationFormatPart

impl Unpin for DurationFormatPart

impl UnsafeUnpin for DurationFormatPart

impl UnwindSafe for DurationFormatPart

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for DurationFormatPart

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

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

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

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

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

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

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

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

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

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