quickjs_runtime::quickjs_utils::maps

Function 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