pub(super) struct JsItems<T> {
items: IntoIter<JsValue>,
next: usize,
convert: Box<dyn Fn(JsValue) -> Result<T, String> + Send + Sync>,
}Expand description
The item handles not yet converted, the index of the next one, and how to convert one.
Fields§
§items: IntoIter<JsValue>§next: usize§convert: Box<dyn Fn(JsValue) -> Result<T, String> + Send + Sync>Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for JsItems<T>
impl<T> !UnwindSafe for JsItems<T>
impl<T> Freeze for JsItems<T>
impl<T> Send for JsItems<T>
impl<T> Sync for JsItems<T>
impl<T> Unpin for JsItems<T>
impl<T> UnsafeUnpin for JsItems<T>
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