Struct ListFormat

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

The Intl.ListFormat object enables language-sensitive list formatting.

MDN documentation

Implementations

impl ListFormat

fn format(&self, list: &Array) -> JsString

Formats a list of strings according to the locale and options.

MDN documentation

impl ListFormat

fn supported_locales_of(locales: &Array, options: &Object) -> Array

Returns an array of supported locales.

MDN documentation

impl ListFormat

fn format_to_parts(&self, list: &Array) -> Array

Returns an array of objects representing the list in parts.

MDN documentation

impl ListFormat

fn new(locales: &Array, options: &Object) -> ListFormat

Creates a new Intl.ListFormat object.

MDN documentation

impl ListFormat

fn resolved_options(&self) -> Object

Returns an object with properties reflecting the options used.

MDN documentation

Trait Implementations

impl AsRef<JsValue> for ListFormat

fn as_ref(&self) -> &JsValue

impl AsRef<ListFormat> for ListFormat

fn as_ref(&self) -> &ListFormat

impl AsRef<Object> for ListFormat

fn as_ref(&self) -> &Object

impl Clone for ListFormat

fn clone(&self) -> Self

impl Debug for ListFormat

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

impl Default for ListFormat

fn default() -> Self

impl Deref for ListFormat

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

impl ErasableGeneric for ListFormat

type Repr = JsValue;

impl From<JsValue> for ListFormat

fn from(obj: JsValue) -> Self

impl FromWasmAbi for ListFormat

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

impl IntoJsGeneric for ListFormat where ListFormat: JsGeneric,

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

impl IntoWasmAbi for ListFormat

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

impl JsCast for ListFormat

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

impl LongRefFromWasmAbi for ListFormat

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

impl OptionFromWasmAbi for ListFormat

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

impl OptionIntoWasmAbi for ListFormat

fn none() -> Self::Abi

impl Promising for ListFormat

type Resolution = ListFormat;

impl RefFromWasmAbi for ListFormat

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

impl UpcastFrom<ListFormat> for ListFormat

impl WasmDescribe for ListFormat

fn describe()

Auto Trait Implementations

impl Freeze for ListFormat

impl RefUnwindSafe for ListFormat

impl Send for ListFormat

impl Sync for ListFormat

impl Unpin for ListFormat

impl UnsafeUnpin for ListFormat

impl UnwindSafe for ListFormat

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for ListFormat

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

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

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

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

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

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

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

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

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

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