Function quickjs_runtime::quickjs_utils::maps::keys

source ·
pub unsafe fn keys<C: Fn(QuickJsValueAdapter) -> Result<R, JsError>, R>(
    ctx: *mut JSContext,
    map: &QuickJsValueAdapter,
    consumer_producer: C,
) -> Result<Vec<R>, JsError>
Expand description

iterate over all keys of a map

§Safety

please ensure the passed JSContext is still valid