quickjs_runtime::quickjs_utils::objects

Function traverse_properties

source
pub unsafe fn traverse_properties<V, R>(
    context: *mut JSContext,
    obj_ref: &QuickJsValueAdapter,
    visitor: V,
) -> Result<Vec<R>, JsError>
where V: Fn(&str, &QuickJsValueAdapter) -> Result<R, JsError>,
Expand description

ยงSafety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid