Enum DurationFormatStyle

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

The style for duration formatting.

MDN documentation

Variants

Long = 0u32
Short = 1u32
Narrow = 2u32
Digital = 3u32

Implementations

impl DurationFormatStyle

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

Trait Implementations

impl Clone for DurationFormatStyle

fn clone(&self) -> Self

impl Copy for DurationFormatStyle

impl Debug for DurationFormatStyle

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

impl Eq for DurationFormatStyle

impl FromWasmAbi for DurationFormatStyle

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

impl IntoWasmAbi for DurationFormatStyle

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

impl OptionFromWasmAbi for DurationFormatStyle

fn is_none(val: &u32) -> bool

impl OptionIntoWasmAbi for DurationFormatStyle

fn none() -> Self::Abi

impl PartialEq for DurationFormatStyle

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

impl StructuralPartialEq for DurationFormatStyle

impl WasmDescribe for DurationFormatStyle

fn describe()

Auto Trait Implementations

impl Freeze for DurationFormatStyle

impl RefUnwindSafe for DurationFormatStyle

impl Send for DurationFormatStyle

impl Sync for DurationFormatStyle

impl Unpin for DurationFormatStyle

impl UnsafeUnpin for DurationFormatStyle

impl UnwindSafe for DurationFormatStyle

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for DurationFormatStyle

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

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

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

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

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