sos-os / alarm

ALARM: Another Library for Allocating and Releasing Memory
Apache License 2.0
8 stars 6 forks source link

Implement Iter::Extend for doubly::List #2

Closed hawkw closed 6 years ago

hawkw commented 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

hawkw commented 6 years ago

I believe @ynasser is interested in looking into this one?

void-elf commented 6 years ago

Yes, feel free to assign it to me!