Struct CollatorOptions
#[repr(transparent)]
pub struct CollatorOptions { /* private fields */ }
Options for Intl.Collator and String.prototype.localeCompare.
Implementations
impl CollatorOptions
fn set_numeric(&self, value: bool)
impl CollatorOptions
fn new() -> CollatorOptions
impl CollatorOptions
fn set_locale_matcher(&self, value: LocaleMatcher)
impl CollatorOptions
fn get_sensitivity(&self) -> Option<CollatorSensitivity>
impl CollatorOptions
fn set_ignore_punctuation(&self, value: bool)
impl CollatorOptions
fn get_case_first(&self) -> Option<CollatorCaseFirst>
impl CollatorOptions
fn get_usage(&self) -> Option<CollatorUsage>
impl CollatorOptions
fn set_sensitivity(&self, value: CollatorSensitivity)
impl CollatorOptions
fn get_numeric(&self) -> Option<bool>
impl CollatorOptions
fn set_case_first(&self, value: CollatorCaseFirst)
impl CollatorOptions
fn get_locale_matcher(&self) -> Option<LocaleMatcher>
impl CollatorOptions
fn set_usage(&self, value: CollatorUsage)
impl CollatorOptions
fn get_ignore_punctuation(&self) -> Option<bool>
Trait Implementations
impl AsRef<CollatorOptions> for CollatorOptions
fn as_ref(&self) -> &CollatorOptions
impl AsRef<JsValue> for CollatorOptions
fn as_ref(&self) -> &JsValue
impl AsRef<Object> for CollatorOptions
fn as_ref(&self) -> &Object
impl Clone for CollatorOptions
fn clone(&self) -> Self
impl Debug for CollatorOptions
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for CollatorOptions
fn default() -> Self
impl Deref for CollatorOptions
type Target = Object;fn deref(&self) -> &Object
impl ErasableGeneric for CollatorOptions
type Repr = JsValue;
impl From<JsValue> for CollatorOptions
fn from(obj: JsValue) -> Self
impl From<ResolvedCollatorOptions> for CollatorOptions
fn from(obj: ResolvedCollatorOptions) -> CollatorOptions
impl FromWasmAbi for CollatorOptions
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for CollatorOptions
where
CollatorOptions: JsGeneric,
type JsCanon = CollatorOptions;fn to_js(self) -> CollatorOptions
impl IntoWasmAbi for CollatorOptions
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for CollatorOptions
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for CollatorOptions
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = CollatorOptions;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for CollatorOptions
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for CollatorOptions
fn none() -> Self::Abi
impl Promising for CollatorOptions
type Resolution = CollatorOptions;
impl RefFromWasmAbi for CollatorOptions
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<CollatorOptions>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl UpcastFrom<CollatorOptions> for CollatorOptions
impl UpcastFrom<ResolvedCollatorOptions> for CollatorOptions
impl WasmDescribe for CollatorOptions
fn describe()