Struct napi::bindgen_prelude::JsSyntaxError
source · pub struct JsSyntaxError(_);
Implementations§
source§impl JsSyntaxError
impl JsSyntaxError
sourcepub unsafe fn into_value(self, env: napi_env) -> napi_value
pub unsafe fn into_value(self, env: napi_env) -> napi_value
Safety
This function is safety if env is not null ptr.
pub fn into_unknown(self, env: Env) -> JsUnknown
sourcepub unsafe fn throw_into(self, env: napi_env)
pub unsafe fn throw_into(self, env: napi_env)
Safety
This function is safety if env is not null ptr.
pub fn throw(&self, env: napi_env) -> Result<()>
Trait Implementations§
source§impl From<Error> for JsSyntaxError
impl From<Error> for JsSyntaxError
source§impl ToNapiValue for JsSyntaxError
impl ToNapiValue for JsSyntaxError
source§unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Safety Read more