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

Method clear

rpi/src/gpio.rs:87–91  ·  view source on GitHub ↗
(&mut self, pin: Pin)

Source from the content-addressed store, hash-verified

85 }
86
87 fn clear(&mut self, pin: Pin) -> io::Result<()> {
88 self.inputs.remove(&pin);
89 self.outputs.remove(&pin);
90 Ok(())
91 }
92
93 fn clear_all(&mut self) -> io::Result<()> {
94 self.inputs.clear();

Callers 5

setupMethod · 0.45
clear_allMethod · 0.45
refreshMethod · 0.45
refresh_current_lineMethod · 0.45
edit_interactivelyMethod · 0.45

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected