Trait napi::bindgen_prelude::ValidateNapiValue
source · [−]pub trait ValidateNapiValue: FromNapiValue + TypeName {
fn type_of() -> Vec<ValueType> { ... }
unsafe fn validate(
env: napi_env,
napi_val: napi_value
) -> Result<napi_value> { ... }
}
Provided Methods
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety
this function called to validate whether napi value passed to rust is valid type