neon/sys/
convert.rs

1use super::{
2    bindings as napi,
3    raw::{Env, Local},
4};
5
6pub unsafe fn to_string(out: &mut Local, env: Env, value: Local) -> bool {
7    let status = napi::coerce_to_string(env, value, out as *mut _);
8
9    status.is_ok()
10}