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