Struct IteratorNext

#[repr(transparent)]
pub struct IteratorNext<T = JsValue> { /* private fields */ }

The result of calling next() on a JS iterator.

MDN documentation

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) -> bool

Has the value true if 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 false if 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) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn 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

impl<T: PartialEq> StructuralPartialEq for IteratorNext<T>

Auto Trait Implementations

impl<T> Freeze for IteratorNext<T> where PhantomData<(T,)>: Freeze,

impl<T> RefUnwindSafe for IteratorNext<T> where PhantomData<(T,)>: RefUnwindSafe,

impl<T> Send for IteratorNext<T> where PhantomData<(T,)>: Send,

impl<T> Sync for IteratorNext<T> where PhantomData<(T,)>: Sync,

impl<T> Unpin for IteratorNext<T> where PhantomData<(T,)>: Unpin,

impl<T> UnsafeUnpin for IteratorNext<T> where PhantomData<(T,)>: UnsafeUnpin,

impl<T> UnwindSafe for IteratorNext<T> where PhantomData<(T,)>: UnwindSafe,

Blanket Implementations

impl<P, T> Receiver for IteratorNext<T> where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for IteratorNext<T> where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for IteratorNext<T> where T: 'static + ?Sized,

impl<T> Borrow<T> for IteratorNext<T> where T: ?Sized,

impl<T> BorrowMut<T> for IteratorNext<T> where T: ?Sized,

impl<T> CloneToUninit for IteratorNext<T> where T: Clone,

impl<T> From<T> for IteratorNext<T>

impl<T> JsGeneric for IteratorNext<T> where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for IteratorNext<T> where T: IntoWasmAbi,

impl<T> ToOwned for IteratorNext<T> where T: Clone,

impl<T> TryFromJsValue for IteratorNext<T> where T: JsCast,

impl<T> VectorFromWasmAbi for IteratorNext<T> where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for IteratorNext<T> where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for IteratorNext<T> where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for IteratorNext<T> where U: From<T>,

impl<T, U> TryFrom<U> for IteratorNext<T> where U: Into<T>,

impl<T, U> TryInto<U> for IteratorNext<T> where U: TryFrom<T>,