pub unsafe static JSPropertyDescriptorWritableKey: Option<&'static NSString>Available on crate features
JSValue and objc2-foundation only.Expand description
Property Descriptor Constants
These keys may assist in creating a property descriptor for use with the defineProperty method on JSValue. Property descriptors must fit one of three descriptions:
Data Descriptor:
- A descriptor containing one or both of the keys
valueandwritable, and optionally containing one or both of the keysenumerableandconfigurable. A data descriptor may not contain either thegetorsetkey. A data descriptor may be used to create or modify the attributes of a data property on an object (replacing any existing accessor property).
Accessor Descriptor:
- A descriptor containing one or both of the keys
getandset, and optionally containing one or both of the keysenumerableandconfigurable. An accessor descriptor may not contain either thevalueorwritablekey. An accessor descriptor may be used to create or modify the attributes of an accessor property on an object (replacing any existing data property).
Generic Descriptor:
- A descriptor containing one or both of the keys
enumerableandconfigurable. A generic descriptor may not contain any of the keysvalue,writable,get, orset. A generic descriptor may be used to modify the attributes of an existing data or accessor property, or to create a new data property.
See also Appleās documentation