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<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>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
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> RefUnwindSafe for Either5<A, B, C, D, E>where A: RefUnwindSafe, B: RefUnwindSafe, C: RefUnwindSafe, D: RefUnwindSafe, E: RefUnwindSafe,
impl<A, B, C, D, E> Send for Either5<A, B, C, D, E>where A: Send, B: Send, C: Send, D: Send, E: Send,
impl<A, B, C, D, E> Sync for Either5<A, B, C, D, E>where A: Sync, B: Sync, C: Sync, D: Sync, E: Sync,
impl<A, B, C, D, E> Unpin for Either5<A, B, C, D, E>where A: Unpin, B: Unpin, C: Unpin, D: Unpin, E: Unpin,
impl<A, B, C, D, E> UnwindSafe for Either5<A, B, C, D, E>where A: UnwindSafe, B: UnwindSafe, C: UnwindSafe, D: UnwindSafe, E: UnwindSafe,
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