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

Safety

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

Implementations on Foreign Types

Implementors