Struct CollatorOptions

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

Options for Intl.Collator and String.prototype.localeCompare.

MDN documentation

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) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn 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()

Auto Trait Implementations

impl Freeze for CollatorOptions

impl RefUnwindSafe for CollatorOptions

impl Send for CollatorOptions

impl Sync for CollatorOptions

impl Unpin for CollatorOptions

impl UnsafeUnpin for CollatorOptions

impl UnwindSafe for CollatorOptions

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for CollatorOptions

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

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

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

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

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

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

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

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

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

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