Enum napi::bindgen_prelude::Either4
source · [−]pub enum Either4<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue, D: TypeName + FromNapiValue + ToNapiValue> {
A(A),
B(B),
C(C),
D(D),
}
Variants
A(A)
B(B)
C(C)
D(D)
Trait Implementations
sourceimpl<A: Clone + TypeName + FromNapiValue + ToNapiValue, B: Clone + TypeName + FromNapiValue + ToNapiValue, C: Clone + TypeName + FromNapiValue + ToNapiValue, D: Clone + TypeName + FromNapiValue + ToNapiValue> Clone for Either4<A, B, C, D>
impl<A: Clone + TypeName + FromNapiValue + ToNapiValue, B: Clone + TypeName + FromNapiValue + ToNapiValue, C: Clone + TypeName + FromNapiValue + ToNapiValue, D: Clone + TypeName + FromNapiValue + ToNapiValue> Clone for Either4<A, B, C, D>
sourceimpl<A: Debug + TypeName + FromNapiValue + ToNapiValue, B: Debug + TypeName + FromNapiValue + ToNapiValue, C: Debug + TypeName + FromNapiValue + ToNapiValue, D: Debug + TypeName + FromNapiValue + ToNapiValue> Debug for Either4<A, B, C, D>
impl<A: Debug + TypeName + FromNapiValue + ToNapiValue, B: Debug + TypeName + FromNapiValue + ToNapiValue, C: Debug + TypeName + FromNapiValue + ToNapiValue, D: Debug + TypeName + FromNapiValue + ToNapiValue> Debug for Either4<A, B, C, D>
sourceimpl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue, D: TypeName + FromNapiValue + ToNapiValue> FromNapiValue for Either4<A, B, C, D>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue, D: TypeName + FromNapiValue + ToNapiValue> FromNapiValue for Either4<A, B, C, D>
sourceunsafe 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>
sourceimpl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue, D: TypeName + FromNapiValue + ToNapiValue> ToNapiValue for Either4<A, B, C, D>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue, D: TypeName + FromNapiValue + ToNapiValue> ToNapiValue for Either4<A, B, C, D>
sourceunsafe 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
sourceimpl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue, D: TypeName + FromNapiValue + ToNapiValue> TypeName for Either4<A, B, C, D>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue, D: TypeName + FromNapiValue + ToNapiValue> TypeName for Either4<A, B, C, D>
impl<A: Copy + TypeName + FromNapiValue + ToNapiValue, B: Copy + TypeName + FromNapiValue + ToNapiValue, C: Copy + TypeName + FromNapiValue + ToNapiValue, D: Copy + TypeName + FromNapiValue + ToNapiValue> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more