Enum napi_h::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<Data, A: AsRef<Data>, B: AsRef<Data>, C: AsRef<Data>, D: AsRef<Data>, E: AsRef<Data>> AsRef<Data> for Either5<A, B, C, D, E>where
Data: ?Sized,
impl<Data, A: AsRef<Data>, B: AsRef<Data>, C: AsRef<Data>, D: AsRef<Data>, E: AsRef<Data>> AsRef<Data> for Either5<A, B, C, D, E>where
Data: ?Sized,
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>
impl<A, B, C, D, E> ToNapiValue for Either5<A, B, C, D, E>
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> 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
impl<A: Copy, B: Copy, C: Copy, D: Copy, E: Copy> Copy for Either5<A, B, C, D, E>
Auto Trait Implementations§
impl<A, B, C, D, E> Freeze for Either5<A, B, C, D, E>
impl<A, B, C, D, E> RefUnwindSafe for Either5<A, B, C, D, E>
impl<A, B, C, D, E> Send for Either5<A, B, C, D, E>
impl<A, B, C, D, E> Sync for Either5<A, B, C, D, E>
impl<A, B, C, D, E> Unpin for Either5<A, B, C, D, E>
impl<A, B, C, D, E> UnwindSafe for Either5<A, B, C, D, E>
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