Struct ListFormatPart

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

A part of the formatted list returned by formatToParts().

MDN documentation

Implementations

impl ListFormatPart

fn value(&self) -> JsString

The value of the part.

impl ListFormatPart

fn type_(&self) -> ListFormatPartType

The type of the part ("element" or "literal").

Trait Implementations

impl AsRef<JsValue> for ListFormatPart

fn as_ref(&self) -> &JsValue

impl AsRef<ListFormatPart> for ListFormatPart

fn as_ref(&self) -> &ListFormatPart

impl AsRef<Object> for ListFormatPart

fn as_ref(&self) -> &Object

impl Clone for ListFormatPart

fn clone(&self) -> Self

impl Debug for ListFormatPart

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

impl Deref for ListFormatPart

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

impl ErasableGeneric for ListFormatPart

type Repr = JsValue;

impl From<JsValue> for ListFormatPart

fn from(obj: JsValue) -> Self

impl FromWasmAbi for ListFormatPart

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

impl IntoJsGeneric for ListFormatPart where ListFormatPart: JsGeneric,

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

impl IntoWasmAbi for ListFormatPart

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

impl JsCast for ListFormatPart

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

impl LongRefFromWasmAbi for ListFormatPart

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

impl OptionFromWasmAbi for ListFormatPart

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

impl OptionIntoWasmAbi for ListFormatPart

fn none() -> Self::Abi

impl Promising for ListFormatPart

type Resolution = ListFormatPart;

impl RefFromWasmAbi for ListFormatPart

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

impl UpcastFrom<ListFormatPart> for ListFormatPart

impl WasmDescribe for ListFormatPart

fn describe()

Auto Trait Implementations

impl Freeze for ListFormatPart

impl RefUnwindSafe for ListFormatPart

impl Send for ListFormatPart

impl Sync for ListFormatPart

impl Unpin for ListFormatPart

impl UnsafeUnpin for ListFormatPart

impl UnwindSafe for ListFormatPart

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for ListFormatPart

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

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

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

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

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

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

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

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

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

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