rust-embedded / rust-sysfs-gpio

A Rust Interface to the Linux sysfs GPIO interface (https://www.kernel.org/doc/Documentation/gpio/sysfs.txt)
Apache License 2.0
383 stars 45 forks source link

Make operations on pins take mutable reference #25

Open Kixunil opened 7 years ago

Kixunil commented 7 years ago

I believe it'd be more logical to take mutable reference to pins. I know that memory itself doesn't change, however, there are good reasons to require mutability anyway:

What do you think?

SaberYoun6 commented 7 years ago

How would your try and impliment this into the code?