Enum napi::bindgen_prelude::Either5
source · pub enum Either5<A, B, C, D, E> {
A(A),
B(B),
C(C),
D(D),
E(E),
}
Variants§
Implementations§
Trait Implementations§
source§impl<A, B, C, D, E> FromNapiValue for Either5<A, B, C, D, E>where
A: TypeName + FromNapiValue + ValidateNapiValue,
B: TypeName + FromNapiValue + ValidateNapiValue,
C: TypeName + FromNapiValue + ValidateNapiValue,
D: TypeName + FromNapiValue + ValidateNapiValue,
E: TypeName + FromNapiValue + ValidateNapiValue,
impl<A, B, C, D, E> FromNapiValue for Either5<A, B, C, D, E>where
A: TypeName + FromNapiValue + ValidateNapiValue,
B: TypeName + FromNapiValue + ValidateNapiValue,
C: TypeName + FromNapiValue + ValidateNapiValue,
D: TypeName + FromNapiValue + ValidateNapiValue,
E: TypeName + FromNapiValue + ValidateNapiValue,
source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self>
source§impl<A, B, C, D, E> ToNapiValue for Either5<A, B, C, D, E>where
A: ToNapiValue,
B: ToNapiValue,
C: ToNapiValue,
D: ToNapiValue,
E: ToNapiValue,
impl<A, B, C, D, E> ToNapiValue for Either5<A, B, C, D, E>where
A: ToNapiValue,
B: ToNapiValue,
C: ToNapiValue,
D: ToNapiValue,
E: ToNapiValue,
source§unsafe fn to_napi_value(env: napi_env, value: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, value: Self) -> Result<napi_value>
Safety Read more
source§impl<A, B, C, D, E> TypeName for Either5<A, B, C, D, E>where
A: TypeName,
B: TypeName,
C: TypeName,
D: TypeName,
E: TypeName,
impl<A, B, C, D, E> TypeName for Either5<A, B, C, D, E>where
A: TypeName,
B: TypeName,
C: TypeName,
D: TypeName,
E: TypeName,
source§impl<A, B, C, D, E> ValidateNapiValue for Either5<A, B, C, D, E>where
A: ValidateNapiValue,
B: ValidateNapiValue,
C: ValidateNapiValue,
D: ValidateNapiValue,
E: ValidateNapiValue,
impl<A, B, C, D, E> ValidateNapiValue for Either5<A, B, C, D, E>where
A: ValidateNapiValue,
B: ValidateNapiValue,
C: ValidateNapiValue,
D: ValidateNapiValue,
E: ValidateNapiValue,
source§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 Read more