From: Ian Jackson Date: Sat, 10 Oct 2020 18:23:14 +0000 (+0100) Subject: example iterator method X-Git-Tag: otter-0.2.0~717 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4c3011ecd2600945c37a1098bd8045cfaf57b8b6;p=otter.git example iterator method Signed-off-by: Ian Jackson --- diff --git a/wasm/wasm.rs b/wasm/wasm.rs index 347ec4b3..53922406 100644 --- a/wasm/wasm.rs +++ b/wasm/wasm.rs @@ -14,3 +14,8 @@ const X : &'static str = "invalid value passed to wasm"; pub fn mutable(s: String) -> ZCoordIterator { ZCoordIterator(ZCoord::from_str(&s).ok_or(X)?.clone_mut()) } + +#[wasm_bindgen] +impl ZCoordIterator { + pub fn next(&mut self) -> () { } +}