Closed hawkw closed 6 years ago
This is as easy as pushing everything in the input iterator into the list; can do this with a for loop. The only potential pain point I can see is ensuring the bounds necessary for push are met on the impl, but they can be just copied from here: https://github.com/hawkw/alarm/blob/130023b601533e67d9717c618fb4db197f9b8fe6/intruder_alarm/src/doubly/mod.rs#L321-L325
push
for
I believe @ynasser is interested in looking into this one?
Yes, feel free to assign it to me!
This is as easy as
push
ing everything in the input iterator into the list; can do this with afor
loop. The only potential pain point I can see is ensuring the bounds necessary forpush
are met on the impl, but they can be just copied from here: https://github.com/hawkw/alarm/blob/130023b601533e67d9717c618fb4db197f9b8fe6/intruder_alarm/src/doubly/mod.rs#L321-L325