Struct ListFormatPart
#[repr(transparent)]
pub struct ListFormatPart { /* private fields */ }
A part of the formatted list returned by formatToParts().
Implementations
impl ListFormatPart
fn value(&self) -> JsStringThe value of the part.
impl ListFormatPart
fn type_(&self) -> ListFormatPartTypeThe 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) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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()