#[repr(C)]pub struct JSPropertyDescriptor {
pub flags: c_int,
pub value: JsValue,
pub getter: JsValue,
pub setter: JsValue,
}Expand description
JSPropertyDescriptor: one complete property, as JS_GetOwnProperty reports it.
32 bytes: flags at 0, then three JSValues at 8/16/24.
Fields§
§flags: c_intJS_PROP_*: the attributes, plus JS_PROP_GETSET for an accessor.
value: JsValueThe value, for a data property.
getter: JsValueThe getter, for an accessor.
setter: JsValueThe setter, for an accessor.
Auto Trait Implementations§
impl Forget for JSPropertyDescriptor
impl Freeze for JSPropertyDescriptor
impl Move for JSPropertyDescriptor
impl RefUnwindSafe for JSPropertyDescriptor
impl Send for JSPropertyDescriptor
impl Sync for JSPropertyDescriptor
impl Unpin for JSPropertyDescriptor
impl UnsafeUnpin for JSPropertyDescriptor
impl UnwindSafe for JSPropertyDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more