MCPcopy Index your code
hub / github.com/endbasic/endbasic / clear_all

Method clear_all

rpi/src/gpio.rs:93–97  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

91 }
92
93 fn clear_all(&mut self) -> io::Result<()> {
94 self.inputs.clear();
95 self.outputs.clear();
96 Ok(())
97 }
98
99 fn read(&mut self, pin: Pin) -> io::Result<bool> {
100 if !self.inputs.contains_key(&pin) || self.outputs.contains_key(&pin) {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected