From 5c4535d1e4c851a4601087562775b9865fa083df Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 11 Oct 2020 10:54:15 +0100 Subject: [PATCH] implement .iter( ) Signed-off-by: Ian Jackson --- zcoord/zcoord.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.30.2