Struct PropertyDescriptor
#[repr(transparent)]
pub struct PropertyDescriptor<T = JsValue> { /* private fields */ }
Implementations
impl PropertyDescriptor
fn new<T>() -> PropertyDescriptor<T>fn new_value<T: JsGeneric>(value: &T) -> PropertyDescriptor<T>
impl<T> PropertyDescriptor<T>
fn get_enumerable(&self) -> Option<bool>
impl<T> PropertyDescriptor<T>
fn set_configurable(&self, configurable: bool)
impl<T> PropertyDescriptor<T>
fn set_value(&self, value: &T) where T: ErasableGenericBorrow<JsValue>,
impl<T> PropertyDescriptor<T>
fn get_writable(&self) -> Option<bool>
impl<T> PropertyDescriptor<T>
fn set_enumerable(&self, enumerable: bool)
impl<T> PropertyDescriptor<T>
fn set_writable(&self, writable: bool)
impl<T> PropertyDescriptor<T>
fn get_configurable(&self) -> Option<bool>
impl<T> PropertyDescriptor<T>
fn get_value(&self) -> Option<T> where Option<T>: ErasableGenericOwn<Option<JsValue>>,
impl<T> PropertyDescriptor<T>
where
T: JsGeneric,
fn get_set(&self) -> Option<Function<fn(T) -> JsValue>> where Option<Function<fn(T) -> JsValue>>: ErasableGenericOwn<Option<Function<fn(JsValue) -> JsValue>>>,
impl<T> PropertyDescriptor<T>
where
T: JsGeneric,
fn get_get(&self) -> Option<Function<fn() -> T>> where Option<Function<fn() -> T>>: ErasableGenericOwn<Option<Function<fn() -> JsValue>>>,
impl<T> PropertyDescriptor<T>
where
T: JsGeneric,
fn set_set(&self, set: Function<fn(T) -> JsValue>) where Function<fn(T) -> JsValue>: ErasableGenericOwn<Function<fn(JsValue) -> JsValue>>,
impl<T> PropertyDescriptor<T>
where
T: JsGeneric,
fn set_get(&self, get: Function<fn() -> T>) where Function<fn() -> T>: ErasableGenericOwn<Function<fn() -> JsValue>>,
Trait Implementations
impl Default for PropertyDescriptor
fn default() -> Self
impl From<JsValue> for PropertyDescriptor
fn from(obj: JsValue) -> Self
impl<T> AsRef<JsValue> for PropertyDescriptor<T>
fn as_ref(&self) -> &JsValue
impl<T> AsRef<Object> for PropertyDescriptor<T>
fn as_ref(&self) -> &Object
impl<T> AsRef<PropertyDescriptor<T>> for PropertyDescriptor<T>
fn as_ref(&self) -> &PropertyDescriptor<T>
impl<T> Deref for PropertyDescriptor<T>
type Target = Object;fn deref(&self) -> &Object
impl<T> ErasableGeneric for PropertyDescriptor<T>
type Repr = JsValue;
impl<T> FromWasmAbi for PropertyDescriptor<T>
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl<T> IntoJsGeneric for PropertyDescriptor<T>
where
PropertyDescriptor<T>: JsGeneric,
type JsCanon = PropertyDescriptor<T>;fn to_js(self) -> PropertyDescriptor<T>
impl<T> IntoWasmAbi for PropertyDescriptor<T>
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl<T> JsCast for PropertyDescriptor<T>
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl<T> LongRefFromWasmAbi for PropertyDescriptor<T>
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = PropertyDescriptor<T>;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl<T> OptionFromWasmAbi for PropertyDescriptor<T>
fn is_none(abi: &Self::Abi) -> bool
impl<T> OptionIntoWasmAbi for PropertyDescriptor<T>
fn none() -> Self::Abi
impl<T> Promising for PropertyDescriptor<T>
type Resolution = PropertyDescriptor<T>;
impl<T> RefFromWasmAbi for PropertyDescriptor<T>
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<PropertyDescriptor<T>>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl<T> WasmDescribe for PropertyDescriptor<T>
fn describe()
impl<T, __UpcastTarget0> UpcastFrom<PropertyDescriptor<T>> for PropertyDescriptor<__UpcastTarget0>
where
__UpcastTarget0: UpcastFrom<T>,
impl<T: Clone> Clone for PropertyDescriptor<T>
fn clone(&self) -> Self
impl<T: Debug> Debug for PropertyDescriptor<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result