Enum DurationFormatPartType

#[non_exhaustive]
#[repr(u32)]
pub enum DurationFormatPartType

The type of a duration format part.

MDN documentation

Variants

Years = 0u32
Months = 1u32
Weeks = 2u32
Days = 3u32
Hours = 4u32
Minutes = 5u32
Seconds = 6u32
Milliseconds = 7u32
Microseconds = 8u32
Nanoseconds = 9u32
Literal = 10u32
Integer = 11u32
Decimal = 12u32
Fraction = 13u32

Implementations

impl DurationFormatPartType

fn from_js_value(obj: &JsValue) -> Option<DurationFormatPartType>

Trait Implementations

impl Clone for DurationFormatPartType

fn clone(&self) -> Self

impl Copy for DurationFormatPartType

impl Debug for DurationFormatPartType

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

impl Eq for DurationFormatPartType

impl FromWasmAbi for DurationFormatPartType

type Abi = u32;
unsafe fn from_abi(val: u32) -> Self

impl IntoWasmAbi for DurationFormatPartType

type Abi = u32;
fn into_abi(self) -> u32

impl OptionFromWasmAbi for DurationFormatPartType

fn is_none(val: &u32) -> bool

impl OptionIntoWasmAbi for DurationFormatPartType

fn none() -> Self::Abi

impl PartialEq for DurationFormatPartType

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for DurationFormatPartType

impl WasmDescribe for DurationFormatPartType

fn describe()

Auto Trait Implementations

impl Freeze for DurationFormatPartType

impl RefUnwindSafe for DurationFormatPartType

impl Send for DurationFormatPartType

impl Sync for DurationFormatPartType

impl Unpin for DurationFormatPartType

impl UnsafeUnpin for DurationFormatPartType

impl UnwindSafe for DurationFormatPartType

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for DurationFormatPartType

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

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

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

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

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