Struct Collator
#[repr(transparent)]
pub struct Collator { /* private fields */ }
The Intl.Collator object is a constructor for collators, objects
that enable language sensitive string comparison.
Implementations
impl Collator
fn new(locales: &Array, options: &Object) -> CollatorThe
Intl.Collatorobject is a constructor for collators, objects that enable language sensitive string comparison.
impl Collator
fn supported_locales_of(locales: &Array, options: &Object) -> ArrayThe
Intl.Collator.supportedLocalesOf()method returns an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's default locale.
impl Collator
fn compare(&self) -> FunctionThe Intl.Collator.prototype.compare property returns a function that compares two strings according to the sort order of this Collator object.
impl Collator
fn resolved_options(&self) -> ObjectThe
Intl.Collator.prototype.resolvedOptions()method returns a new object with properties reflecting the locale and collation options computed during initialization of this Collator object.
Trait Implementations
impl AsRef<Collator> for Collator
fn as_ref(&self) -> &Collator
impl AsRef<JsValue> for Collator
fn as_ref(&self) -> &JsValue
impl AsRef<Object> for Collator
fn as_ref(&self) -> &Object
impl Clone for Collator
fn clone(&self) -> Self
impl Debug for Collator
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Collator
fn default() -> Self
impl Deref for Collator
type Target = Object;fn deref(&self) -> &Object
impl ErasableGeneric for Collator
type Repr = JsValue;
impl From<JsValue> for Collator
fn from(obj: JsValue) -> Self
impl FromWasmAbi for Collator
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for Collator
where
Collator: JsGeneric,
type JsCanon = Collator;fn to_js(self) -> Collator
impl IntoWasmAbi for Collator
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for Collator
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for Collator
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = Collator;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for Collator
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for Collator
fn none() -> Self::Abi
impl Promising for Collator
type Resolution = Collator;
impl RefFromWasmAbi for Collator
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<Collator>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl UpcastFrom<Collator> for Collator
impl WasmDescribe for Collator
fn describe()