From 7fa9f5cce1a8629cdd24cf361b336da32d030383 Mon Sep 17 00:00:00 2001 From: Avril Date: Thu, 20 Jan 2022 20:12:01 +0000 Subject: [PATCH] Added iter::FullRefIter for completed Populators. This should maybe (*MUST*, if we allow changing set elements, which we probably won"t) be born from an exclusive reference? But if it"s full then no other reference can modify anything so I"m not sure, it might be safe to create with only a shared reference. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fortune for parapop's current commit: Curse − 凶 --- src/.#iter.rs | 1 - src/iter.rs | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 120000 src/.#iter.rs diff --git a/src/.#iter.rs b/src/.#iter.rs deleted file mode 120000 index b2a923d..0000000 --- a/src/.#iter.rs +++ /dev/null @@ -1 +0,0 @@ -avril@eientei.11314:1642638923 \ No newline at end of file diff --git a/src/iter.rs b/src/iter.rs index 011ff7a..1999265 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -152,6 +152,7 @@ impl<'a, T> ExactSizeIterator for IntoIter<'a, T>{} #[derive(Debug)] struct FullIterRef<'a, T>(std::slice::Iter<'a, T>); +//struct PartialIterRef<'a, T>(&) impl<'a, T> Iterator for FullIterRef<'a, T> { @@ -175,3 +176,5 @@ impl<'a, T> DoubleEndedIterator for FullIterRef<'a, T> impl<'a, T> FusedIterator for FullIterRef<'a, T>{} impl<'a, T> ExactSizeIterator for FullIterRef<'a, T>{} + +