Enum napi::bindgen_prelude::Either
source ·
[−]pub enum Either<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue> {
A(A),
B(B),
}
Variants
A(A)
B(B)
Implementations
impl<A: TypeName + FromNapiValue + ToNapiValue + NapiRaw, B: TypeName + FromNapiValue + ToNapiValue + NapiRaw> Either<A, B>
impl<A: TypeName + FromNapiValue + ToNapiValue + NapiRaw, B: TypeName + FromNapiValue + ToNapiValue + NapiRaw> Either<A, B>
Safety
Backward compatible with Either
in v1
Trait Implementations
impl<A: Clone + TypeName + FromNapiValue + ToNapiValue, B: Clone + TypeName + FromNapiValue + ToNapiValue> Clone for Either<A, B>
impl<A: Clone + TypeName + FromNapiValue + ToNapiValue, B: Clone + TypeName + FromNapiValue + ToNapiValue> Clone for Either<A, B>
impl<A: Debug + TypeName + FromNapiValue + ToNapiValue, B: Debug + TypeName + FromNapiValue + ToNapiValue> Debug for Either<A, B>
impl<A: Debug + TypeName + FromNapiValue + ToNapiValue, B: Debug + TypeName + FromNapiValue + ToNapiValue> Debug for Either<A, B>
Performs the conversion.
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue> FromNapiValue for Either<A, B>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue> FromNapiValue for Either<A, B>
Safety Read more
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue> ToNapiValue for Either<A, B>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue> ToNapiValue for Either<A, B>
Safety Read more
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue> TypeName for Either<A, B>
impl<A: TypeName + FromNapiValue + ToNapiValue, B: TypeName + FromNapiValue + ToNapiValue> TypeName for Either<A, B>
impl<A: Copy + TypeName + FromNapiValue + ToNapiValue, B: Copy + TypeName + FromNapiValue + ToNapiValue> Copy for Either<A, B>
Auto Trait Implementations
impl<A, B> RefUnwindSafe for Either<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for Either<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more