rust-lang / rustwide

Execute your code on the Rust ecosystem.
Apache License 2.0
180 stars 41 forks source link

add actions on process_lines #20

Closed zeegomo closed 4 years ago

zeegomo commented 4 years ago

Draft of how Actions can be implemented. It uses maybe a little more memory than necessary because it duplicates the input line even if it's not modified but I believe that since the input is a single line and it goes out of scope as soon as it reads another line it's not very important to optimize this and this way it's easier to write/understand