Type Alias napi_h::bindgen_prelude::Result
source · pub type Result<T, S = Status> = Result<T, Error<S>>;
Aliased Type§
enum Result<T, S = Status> {
Ok(T),
Err(Error<S>),
}
Variants§
Trait Implementations§
source§impl<T> ToNapiValue for Result<T>where
T: ToNapiValue,
impl<T> ToNapiValue for Result<T>where
T: ToNapiValue,
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