From: Ian Jackson Date: Sun, 11 Oct 2020 09:54:15 +0000 (+0100) Subject: implement .iter( ) X-Git-Tag: otter-0.2.0~684 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5c4535d1e4c851a4601087562775b9865fa083df;p=otter.git implement .iter( ) Signed-off-by: Ian Jackson --- diff --git a/zcoord/zcoord.rs b/zcoord/zcoord.rs index 84b0c06f..472059eb 100644 --- a/zcoord/zcoord.rs +++ b/zcoord/zcoord.rs @@ -340,6 +340,12 @@ impl ExactSizeIterator for IteratorCore { fn len(&self) -> usize { return usize::MAX } } +impl Mutable { + pub fn iter(self, aso: ASO) -> IteratorCore { + IteratorCore { current: self, aso } + } +} + //---------- main features of a Zcoord ---------- impl ZCoord {