Commit b25ec35
committed
tr: improve TapTreeIter a bunch
TapTreeIter is now a wrapper around core::slice::Iter. So we can
propagate several traits: ExactSizeIterator, DoubleEndedIterator and
FusedIterator. Also Default.
Annoyingly we cannot propagate TrustedLenIterator since that's
nightly-only.
core::slice::Iter also implements AsRef<&[T]> which is tempting, but we
don't propagate that since it feels like it reveals too much about the
internals of TapTreeIter.1 parent 960a6cc commit b25ec35
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
164 | 178 | | |
165 | 179 | | |
166 | 180 | | |
| |||
0 commit comments