Enum napi_h::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>
impl<A, B, C> ToNapiValue for Either3<A, B, C>
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>
impl<A, B, C> ValidateNapiValue for Either3<A, B, C>
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
impl<A: Copy, B: Copy, C: Copy> Copy for Either3<A, B, C>
Auto Trait Implementations§
impl<A, B, C> Freeze for Either3<A, B, C>
impl<A, B, C> RefUnwindSafe for Either3<A, B, C>
impl<A, B, C> Send for Either3<A, B, C>
impl<A, B, C> Sync for Either3<A, B, C>
impl<A, B, C> Unpin for Either3<A, B, C>
impl<A, B, C> UnwindSafe for Either3<A, B, C>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more