[−][src]Enum napi::Either
Variants
Trait Implementations
impl<A: Clone + NapiValue, B: Clone + NapiValue> Clone for Either<A, B>
[src]
impl<A: Copy + NapiValue, B: Copy + NapiValue> Copy for Either<A, B>
[src]
impl<A: Debug + NapiValue, B: Debug + NapiValue> Debug for Either<A, B>
[src]
impl<T: NapiValue> Into<Option<T>> for Either<T, JsUndefined>
[src]
impl<A: NapiValue, B: NapiValue> NapiValue for Either<A, B>
[src]
unsafe fn from_raw(env: napi_env, value: napi_value) -> Result<Either<A, B>>
[src]
unsafe fn from_raw_unchecked(env: napi_env, value: napi_value) -> Either<A, B>
[src]
unsafe fn raw(&self) -> napi_value
[src]
Auto Trait Implementations
impl<A, B> RefUnwindSafe for Either<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
[src]
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Either<A, B> where
A: Send,
B: Send,
[src]
A: Send,
B: Send,
impl<A, B> Sync for Either<A, B> where
A: Sync,
B: Sync,
[src]
A: Sync,
B: Sync,
impl<A, B> Unpin for Either<A, B> where
A: Unpin,
B: Unpin,
[src]
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for Either<A, B> where
A: UnwindSafe,
B: UnwindSafe,
[src]
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,