napi::bindgen_prelude::iterator

Function create_iterator

source
pub fn create_iterator<T: Generator>(
    env: napi_env,
    instance: napi_value,
    generator_ptr: *mut T,
)