Struct IteratorNext
#[repr(transparent)]
pub struct IteratorNext<T = JsValue> { /* private fields */ }
The result of calling next() on a JS iterator.
Implementations
impl<T> IteratorNext<T>
fn value(&self) -> T where T: ErasableGenericOwn<JsValue>,Any JavaScript value returned by the iterator. Can be omitted when done is true.
impl<T> IteratorNext<T>
fn done(&self) -> boolHas the value
trueif the iterator is past the end of the iterated sequence. In this case value optionally specifies the return value of the iterator.Has the value
falseif the iterator was able to produce the next value in the sequence. This is equivalent of not specifying the done property altogether.
Trait Implementations
impl From<JsValue> for IteratorNext
fn from(obj: JsValue) -> Self
impl<T> AsRef<IteratorNext<T>> for IteratorNext<T>
fn as_ref(&self) -> &IteratorNext<T>
impl<T> AsRef<JsValue> for IteratorNext<T>
fn as_ref(&self) -> &JsValue
impl<T> AsRef<Object> for IteratorNext<T>
fn as_ref(&self) -> &Object
impl<T> Deref for IteratorNext<T>
type Target = Object;fn deref(&self) -> &Object
impl<T> ErasableGeneric for IteratorNext<T>
type Repr = JsValue;
impl<T> FromWasmAbi for IteratorNext<T>
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl<T> IntoJsGeneric for IteratorNext<T>
where
IteratorNext<T>: JsGeneric,
type JsCanon = IteratorNext<T>;fn to_js(self) -> IteratorNext<T>
impl<T> IntoWasmAbi for IteratorNext<T>
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl<T> JsCast for IteratorNext<T>
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl<T> LongRefFromWasmAbi for IteratorNext<T>
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = IteratorNext<T>;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl<T> OptionFromWasmAbi for IteratorNext<T>
fn is_none(abi: &Self::Abi) -> bool
impl<T> OptionIntoWasmAbi for IteratorNext<T>
fn none() -> Self::Abi
impl<T> Promising for IteratorNext<T>
type Resolution = IteratorNext<T>;
impl<T> RefFromWasmAbi for IteratorNext<T>
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<IteratorNext<T>>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl<T> WasmDescribe for IteratorNext<T>
fn describe()
impl<T, __UpcastTarget0> UpcastFrom<IteratorNext<T>> for IteratorNext<__UpcastTarget0>
where
__UpcastTarget0: UpcastFrom<T>,
impl<T: Clone> Clone for IteratorNext<T>
fn clone(&self) -> Self
impl<T: Debug> Debug for IteratorNext<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Eq> Eq for IteratorNext<T>
impl<T: PartialEq> PartialEq for IteratorNext<T>
fn eq(&self, other: &Self) -> bool