Type Definition js::jsapi::JSGetterOp [] [src]

type JSGetterOp = Option<unsafe extern "C" fn(cx: *mut JSContext, obj: HandleObject, id: HandleId, vp: MutableHandleValue) -> bool>;

Get a property named by id in obj. Note the jsid id type -- id may be a string (Unicode property identifier) or an int (element index). The *vp out parameter, on success, is the new property value after the action.