Trait napi::bindgen_prelude::ValidateNapiValue[][src]

pub trait ValidateNapiValue: FromNapiValue + TypeName {
    fn type_of() -> Vec<ValueType> { ... }
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<()> { ... } }

Provided methods

Safety

this function called to validate whether napi value passed to rust is valid type

Implementations on Foreign Types

Implementors