js-sys: Add doc comment for js_sys::Iter

This commit is contained in:
Nick Fitzgerald 2018-09-25 11:20:09 -07:00
parent 8a2b2cb6e1
commit dc22965e71

View File

@ -1176,6 +1176,9 @@ extern {
pub fn next(this: &Iterator) -> Result<IteratorNext, JsValue>;
}
/// An iterator over the JS `Symbol.iterator` iteration protocol.
///
/// Use the `IntoIterator for &js_sys::Iterator` implementation to create this.
pub struct Iter<'a> {
js: &'a Iterator,
state: IterState,