pub enum Unpacked<A: IVm> {
Nullish(Nullish),
Boolean(bool),
Number(Number),
String(String<A>),
BigInt(BigInt<A>),
Object(Object<A>),
Array(Array<A>),
Function(Function<A>),
}Variants§
Nullish(Nullish)
Boolean(bool)
Number(Number)
String(String<A>)
BigInt(BigInt<A>)
Object(Object<A>)
Array(Array<A>)
Function(Function<A>)
Implementations§
Source§impl<A: IVm> Unpacked<A>
impl<A: IVm> Unpacked<A>
Sourcepub fn is_nullish(&self) -> bool
pub fn is_nullish(&self) -> bool
Whether this is undefined or null: the one place the match is
written. A match, never Nullish::try_from, which builds and discards
an error value for every value that is not nullish, the common answer.
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Whether this is undefined, and not null: the absent value an
optional argument takes its default on. A match, as is_nullish is.
pub fn dispatch<T: Dispatch<A>>(self, o: T) -> T::Result
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Unpacked<A>where
<A as IVm>::InternalString: Freeze,
<A as IVm>::InternalBigInt: Freeze,
<A as IVm>::InternalObject: Freeze,
<A as IVm>::InternalArray: Freeze,
<A as IVm>::InternalFunction: Freeze,
impl<A> RefUnwindSafe for Unpacked<A>where
<A as IVm>::InternalString: RefUnwindSafe,
<A as IVm>::InternalBigInt: RefUnwindSafe,
<A as IVm>::InternalObject: RefUnwindSafe,
<A as IVm>::InternalArray: RefUnwindSafe,
<A as IVm>::InternalFunction: RefUnwindSafe,
impl<A> Send for Unpacked<A>where
<A as IVm>::InternalString: Send,
<A as IVm>::InternalBigInt: Send,
<A as IVm>::InternalObject: Send,
<A as IVm>::InternalArray: Send,
<A as IVm>::InternalFunction: Send,
impl<A> Sync for Unpacked<A>where
<A as IVm>::InternalString: Sync,
<A as IVm>::InternalBigInt: Sync,
<A as IVm>::InternalObject: Sync,
<A as IVm>::InternalArray: Sync,
<A as IVm>::InternalFunction: Sync,
impl<A> Unpin for Unpacked<A>where
<A as IVm>::InternalString: Unpin,
<A as IVm>::InternalBigInt: Unpin,
<A as IVm>::InternalObject: Unpin,
<A as IVm>::InternalArray: Unpin,
<A as IVm>::InternalFunction: Unpin,
impl<A> UnsafeUnpin for Unpacked<A>where
<A as IVm>::InternalString: UnsafeUnpin,
<A as IVm>::InternalBigInt: UnsafeUnpin,
<A as IVm>::InternalObject: UnsafeUnpin,
<A as IVm>::InternalArray: UnsafeUnpin,
<A as IVm>::InternalFunction: UnsafeUnpin,
impl<A> UnwindSafe for Unpacked<A>where
<A as IVm>::InternalString: UnwindSafe,
<A as IVm>::InternalBigInt: UnwindSafe,
<A as IVm>::InternalObject: UnwindSafe,
<A as IVm>::InternalArray: UnwindSafe,
<A as IVm>::InternalFunction: UnwindSafe,
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