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) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn 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

Auto Trait Implementations

impl<T> Freeze for PropertyDescriptor<T> where PhantomData<(T,)>: Freeze,

impl<T> RefUnwindSafe for PropertyDescriptor<T> where PhantomData<(T,)>: RefUnwindSafe,

impl<T> Send for PropertyDescriptor<T> where PhantomData<(T,)>: Send,

impl<T> Sync for PropertyDescriptor<T> where PhantomData<(T,)>: Sync,

impl<T> Unpin for PropertyDescriptor<T> where PhantomData<(T,)>: Unpin,

impl<T> UnsafeUnpin for PropertyDescriptor<T> where PhantomData<(T,)>: UnsafeUnpin,

impl<T> UnwindSafe for PropertyDescriptor<T> where PhantomData<(T,)>: UnwindSafe,

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for PropertyDescriptor<T>

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

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

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

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

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

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

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

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

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

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