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
impl<A: Copy, B: Copy, C: Copy, D: Copy> Copy for Either4<A, B, C, D>
Auto Trait Implementations§
impl<A, B, C, D> RefUnwindSafe for Either4<A, B, C, D>where A: RefUnwindSafe, B: RefUnwindSafe, C: RefUnwindSafe, D: RefUnwindSafe,
impl<A, B, C, D> Send for Either4<A, B, C, D>where A: Send, B: Send, C: Send, D: Send,
impl<A, B, C, D> Sync for Either4<A, B, C, D>where A: Sync, B: Sync, C: Sync, D: Sync,
impl<A, B, C, D> Unpin for Either4<A, B, C, D>where A: Unpin, B: Unpin, C: Unpin, D: Unpin,
impl<A, B, C, D> UnwindSafe for Either4<A, B, C, D>where A: UnwindSafe, B: UnwindSafe, C: UnwindSafe, D: 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