Commit 8622a8f
committed
bit_machine: return concrete type from
Returning a concrete type lets us get more trait methods rather than just
`Iterator`. In particular we should be able to get `ExactSizeIterator`
and `Fuse` which are important for efficiency.
We also want to name this type elsewhere, and even the existential one
was annoying to type, so we add an alias for it.as_bit_iter
1 parent 7ecf394 commit 8622a8f
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments