Struct TextInfo

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

Text layout information for a locale.

MDN documentation

Implementations

impl TextInfo

fn direction(&self) -> JsString

The text direction ("ltr" or "rtl").

Trait Implementations

impl AsRef<JsValue> for TextInfo

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for TextInfo

fn as_ref(&self) -> &Object

impl AsRef<TextInfo> for TextInfo

fn as_ref(&self) -> &TextInfo

impl Clone for TextInfo

fn clone(&self) -> Self

impl Debug for TextInfo

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

impl Deref for TextInfo

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

impl ErasableGeneric for TextInfo

type Repr = JsValue;

impl From<JsValue> for TextInfo

fn from(obj: JsValue) -> Self

impl FromWasmAbi for TextInfo

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

impl IntoJsGeneric for TextInfo where TextInfo: JsGeneric,

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

impl IntoWasmAbi for TextInfo

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

impl JsCast for TextInfo

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

impl LongRefFromWasmAbi for TextInfo

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

impl OptionFromWasmAbi for TextInfo

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

impl OptionIntoWasmAbi for TextInfo

fn none() -> Self::Abi

impl Promising for TextInfo

type Resolution = TextInfo;

impl RefFromWasmAbi for TextInfo

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

impl UpcastFrom<TextInfo> for TextInfo

impl WasmDescribe for TextInfo

fn describe()

Auto Trait Implementations

impl Freeze for TextInfo

impl RefUnwindSafe for TextInfo

impl Send for TextInfo

impl Sync for TextInfo

impl Unpin for TextInfo

impl UnsafeUnpin for TextInfo

impl UnwindSafe for TextInfo

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for TextInfo

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

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

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

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

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

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

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

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

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

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