Struct SegmenterOptions

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

Options for Intl.Segmenter constructor.

MDN documentation

Implementations

impl SegmenterOptions

fn get_locale_matcher(&self) -> Option<LocaleMatcher>

impl SegmenterOptions

fn set_granularity(&self, value: SegmenterGranularity)

impl SegmenterOptions

fn set_locale_matcher(&self, value: LocaleMatcher)

impl SegmenterOptions

fn new() -> SegmenterOptions

impl SegmenterOptions

fn get_granularity(&self) -> Option<SegmenterGranularity>

Trait Implementations

impl AsRef<JsValue> for SegmenterOptions

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for SegmenterOptions

fn as_ref(&self) -> &Object

impl AsRef<SegmenterOptions> for SegmenterOptions

fn as_ref(&self) -> &SegmenterOptions

impl Clone for SegmenterOptions

fn clone(&self) -> Self

impl Debug for SegmenterOptions

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

impl Default for SegmenterOptions

fn default() -> Self

impl Deref for SegmenterOptions

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

impl ErasableGeneric for SegmenterOptions

type Repr = JsValue;

impl From<JsValue> for SegmenterOptions

fn from(obj: JsValue) -> Self

impl From<ResolvedSegmenterOptions> for SegmenterOptions

fn from(obj: ResolvedSegmenterOptions) -> SegmenterOptions

impl FromWasmAbi for SegmenterOptions

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

impl IntoJsGeneric for SegmenterOptions where SegmenterOptions: JsGeneric,

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

impl IntoWasmAbi for SegmenterOptions

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

impl JsCast for SegmenterOptions

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

impl LongRefFromWasmAbi for SegmenterOptions

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

impl OptionFromWasmAbi for SegmenterOptions

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

impl OptionIntoWasmAbi for SegmenterOptions

fn none() -> Self::Abi

impl Promising for SegmenterOptions

type Resolution = SegmenterOptions;

impl RefFromWasmAbi for SegmenterOptions

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

impl UpcastFrom<ResolvedSegmenterOptions> for SegmenterOptions

impl UpcastFrom<SegmenterOptions> for SegmenterOptions

impl WasmDescribe for SegmenterOptions

fn describe()

Auto Trait Implementations

impl Freeze for SegmenterOptions

impl RefUnwindSafe for SegmenterOptions

impl Send for SegmenterOptions

impl Sync for SegmenterOptions

impl Unpin for SegmenterOptions

impl UnsafeUnpin for SegmenterOptions

impl UnwindSafe for SegmenterOptions

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for SegmenterOptions

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

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

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

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

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

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

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

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

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

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