Enum napi::bindgen_prelude::Either3
source · [−]pub enum Either3<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue> {
A(A),
B(B),
C(C),
}
Variants
A(A)
B(B)
C(C)
Trait Implementations
sourceimpl<A: Clone + TypeName + FromNapiValue + ToNapiValue, B: Clone + TypeName + FromNapiValue + ToNapiValue, C: Clone + TypeName + FromNapiValue + ToNapiValue> Clone for Either3<A, B, C>
impl<A: Clone + TypeName + FromNapiValue + ToNapiValue, B: Clone + TypeName + FromNapiValue + ToNapiValue, C: Clone + TypeName + FromNapiValue + ToNapiValue> Clone for Either3<A, B, C>
sourceimpl<A: Debug + TypeName + FromNapiValue + ToNapiValue, B: Debug + TypeName + FromNapiValue + ToNapiValue, C: Debug + TypeName + FromNapiValue + ToNapiValue> Debug for Either3<A, B, C>
impl<A: Debug + TypeName + FromNapiValue + ToNapiValue, B: Debug + TypeName + FromNapiValue + ToNapiValue, C: Debug + TypeName + FromNapiValue + ToNapiValue> Debug for Either3<A, B, C>
sourceimpl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue> FromNapiValue for Either3<A, B, C>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue> FromNapiValue for Either3<A, B, C>
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> ToNapiValue for Either3<A, B, C>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue> ToNapiValue for Either3<A, B, C>
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> TypeName for Either3<A, B, C>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue, C: TypeName + FromNapiValue + ToNapiValue> TypeName for Either3<A, B, C>
impl<A: Copy + TypeName + FromNapiValue + ToNapiValue, B: Copy + TypeName + FromNapiValue + ToNapiValue, C: Copy + TypeName + FromNapiValue + ToNapiValue> Copy for Either3<A, B, C>
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for Either3<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> Send for Either3<A, B, C> where
A: Send,
B: Send,
C: Send,
impl<A, B, C> Sync for Either3<A, B, C> where
A: Sync,
B: Sync,
C: Sync,
impl<A, B, C> Unpin for Either3<A, B, C> where
A: Unpin,
B: Unpin,
C: Unpin,
impl<A, B, C> UnwindSafe for Either3<A, B, C> where
A: UnwindSafe,
B: UnwindSafe,
C: 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