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.

Fortune for parapop's current commit: Curse − 凶
master
Avril 2 years ago
parent 5ca9459495
commit 7fa9f5cce1
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1 +0,0 @@
avril@eientei.11314:1642638923

@ -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>{}

Loading…
Cancel
Save