Struct ListFormat
#[repr(transparent)]
pub struct ListFormat { /* private fields */ }
The Intl.ListFormat object enables language-sensitive list formatting.
Implementations
impl ListFormat
fn format(&self, list: &Array) -> JsStringFormats a list of strings according to the locale and options.
impl ListFormat
fn supported_locales_of(locales: &Array, options: &Object) -> ArrayReturns an array of supported locales.
impl ListFormat
fn format_to_parts(&self, list: &Array) -> ArrayReturns an array of objects representing the list in parts.
impl ListFormat
fn new(locales: &Array, options: &Object) -> ListFormatCreates a new
Intl.ListFormatobject.
impl ListFormat
fn resolved_options(&self) -> ObjectReturns an object with properties reflecting the options used.
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) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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()