Enum napi::bindgen_prelude::Either4
source · pub enum Either4<A, B, C, D> {
A(A),
B(B),
C(C),
D(D),
}
Variants§
Implementations§
Trait Implementations§
source§impl<Data, A: AsRef<Data>, B: AsRef<Data>, C: AsRef<Data>, D: AsRef<Data>> AsRef<Data> for Either4<A, B, C, D>where
Data: ?Sized,
impl<Data, A: AsRef<Data>, B: AsRef<Data>, C: AsRef<Data>, D: AsRef<Data>> AsRef<Data> for Either4<A, B, C, D>where
Data: ?Sized,
source§impl<A, B, C, D> FromNapiValue for Either4<A, B, C, D>where
A: TypeName + FromNapiValue + ValidateNapiValue,
B: TypeName + FromNapiValue + ValidateNapiValue,
C: TypeName + FromNapiValue + ValidateNapiValue,
D: TypeName + FromNapiValue + ValidateNapiValue,
impl<A, B, C, D> FromNapiValue for Either4<A, B, C, D>where
A: TypeName + FromNapiValue + ValidateNapiValue,
B: TypeName + FromNapiValue + ValidateNapiValue,
C: TypeName + FromNapiValue + ValidateNapiValue,
D: 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> ToNapiValue for Either4<A, B, C, D>where
A: ToNapiValue,
B: ToNapiValue,
C: ToNapiValue,
D: ToNapiValue,
impl<A, B, C, D> ToNapiValue for Either4<A, B, C, D>where
A: ToNapiValue,
B: ToNapiValue,
C: ToNapiValue,
D: 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> TypeName for Either4<A, B, C, D>where
A: TypeName,
B: TypeName,
C: TypeName,
D: TypeName,
impl<A, B, C, D> TypeName for Either4<A, B, C, D>where
A: TypeName,
B: TypeName,
C: TypeName,
D: TypeName,
source§impl<A, B, C, D> ValidateNapiValue for Either4<A, B, C, D>where
A: ValidateNapiValue,
B: ValidateNapiValue,
C: ValidateNapiValue,
D: ValidateNapiValue,
impl<A, B, C, D> ValidateNapiValue for Either4<A, B, C, D>where
A: ValidateNapiValue,
B: ValidateNapiValue,
C: ValidateNapiValue,
D: 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