Struct RelativeTimeFormatOptions

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

Options for Intl.RelativeTimeFormat constructor.

MDN documentation

Implementations

impl RelativeTimeFormatOptions

fn set_locale_matcher(&self, value: LocaleMatcher)

impl RelativeTimeFormatOptions

fn get_style(&self) -> Option<RelativeTimeFormatStyle>

impl RelativeTimeFormatOptions

fn get_numeric(&self) -> Option<RelativeTimeFormatNumeric>

impl RelativeTimeFormatOptions

fn set_style(&self, value: RelativeTimeFormatStyle)

impl RelativeTimeFormatOptions

fn get_locale_matcher(&self) -> Option<LocaleMatcher>

impl RelativeTimeFormatOptions

fn set_numeric(&self, value: RelativeTimeFormatNumeric)

impl RelativeTimeFormatOptions

fn new() -> RelativeTimeFormatOptions

Trait Implementations

impl AsRef<JsValue> for RelativeTimeFormatOptions

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for RelativeTimeFormatOptions

fn as_ref(&self) -> &Object

impl AsRef<RelativeTimeFormatOptions> for RelativeTimeFormatOptions

fn as_ref(&self) -> &RelativeTimeFormatOptions

impl Clone for RelativeTimeFormatOptions

fn clone(&self) -> Self

impl Debug for RelativeTimeFormatOptions

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

impl Default for RelativeTimeFormatOptions

fn default() -> Self

impl Deref for RelativeTimeFormatOptions

type Target = Object;
fn deref(&self) -> &Object

impl ErasableGeneric for RelativeTimeFormatOptions

type Repr = JsValue;

impl From<JsValue> for RelativeTimeFormatOptions

fn from(obj: JsValue) -> Self

impl From<ResolvedRelativeTimeFormatOptions> for RelativeTimeFormatOptions

fn from(obj: ResolvedRelativeTimeFormatOptions) -> RelativeTimeFormatOptions

impl FromWasmAbi for RelativeTimeFormatOptions

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl IntoJsGeneric for RelativeTimeFormatOptions where RelativeTimeFormatOptions: JsGeneric,

type JsCanon = RelativeTimeFormatOptions;
fn to_js(self) -> RelativeTimeFormatOptions

impl IntoWasmAbi for RelativeTimeFormatOptions

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl JsCast for RelativeTimeFormatOptions

fn instanceof(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self

impl LongRefFromWasmAbi for RelativeTimeFormatOptions

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = RelativeTimeFormatOptions;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl OptionFromWasmAbi for RelativeTimeFormatOptions

fn is_none(abi: &Self::Abi) -> bool

impl OptionIntoWasmAbi for RelativeTimeFormatOptions

fn none() -> Self::Abi

impl Promising for RelativeTimeFormatOptions

type Resolution = RelativeTimeFormatOptions;

impl RefFromWasmAbi for RelativeTimeFormatOptions

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<RelativeTimeFormatOptions>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl UpcastFrom<RelativeTimeFormatOptions> for RelativeTimeFormatOptions

impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for RelativeTimeFormatOptions

impl WasmDescribe for RelativeTimeFormatOptions

fn describe()

Auto Trait Implementations

impl Freeze for RelativeTimeFormatOptions

impl RefUnwindSafe for RelativeTimeFormatOptions

impl Send for RelativeTimeFormatOptions

impl Sync for RelativeTimeFormatOptions

impl Unpin for RelativeTimeFormatOptions

impl UnsafeUnpin for RelativeTimeFormatOptions

impl UnwindSafe for RelativeTimeFormatOptions

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for RelativeTimeFormatOptions

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

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

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

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

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

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

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

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

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

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