Function quickjs_runtime::quickjs_utils::maps::entries

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

iterate over all entries of a map

§Safety

please ensure the passed JSContext is still valid