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: Serialize, B: Serialize, C: Serialize, D: Serialize> Serialize for Either4<A, B, C, D>
impl<A: Serialize, B: Serialize, C: Serialize, D: Serialize> Serialize for Either4<A, B, C, D>
source§impl<A, B, C, D> ToNapiValue for Either4<A, B, C, D>
impl<A, B, C, D> ToNapiValue for Either4<A, B, C, D>
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> ValidateNapiValue for Either4<A, B, C, D>
impl<A, B, C, D> ValidateNapiValue for Either4<A, B, C, D>
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> Freeze for Either4<A, B, C, D>
impl<A, B, C, D> RefUnwindSafe for Either4<A, B, C, D>
impl<A, B, C, D> Send for Either4<A, B, C, D>
impl<A, B, C, D> Sync for Either4<A, B, C, D>
impl<A, B, C, D> Unpin for Either4<A, B, C, D>
impl<A, B, C, D> UnwindSafe for Either4<A, B, C, D>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)