Struct javascriptcore_sys::JSStaticValue
source · #[repr(C)]pub struct JSStaticValue {
pub name: *const c_char,
pub getProperty: JSObjectGetPropertyCallback,
pub setProperty: JSObjectSetPropertyCallback,
pub attributes: JSPropertyAttributes,
}Expand description
A statically declared value property.
Fields§
§name: *const c_charA null-terminated UTF8 string containing the property’s name.
getProperty: JSObjectGetPropertyCallbackA JSObjectGetPropertyCallback to invoke when getting the property’s value.
setProperty: JSObjectSetPropertyCallbackA JSObjectSetPropertyCallback to invoke when setting the property’s value.
May be NULL if the ReadOnly attribute is set.
attributes: JSPropertyAttributesA logically ORed set of JSPropertyAttributes to give to the property.
Trait Implementations§
source§impl Clone for JSStaticValue
impl Clone for JSStaticValue
source§fn clone(&self) -> JSStaticValue
fn clone(&self) -> JSStaticValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more