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

Method clear

crates/stdlib/src/select.rs:163–165  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

161 }
162
163 pub fn clear(&mut self) {
164 unsafe { platform::FD_ZERO(self.0.as_mut_ptr()) };
165 }
166
167 pub fn highest(&mut self) -> Option<RawFd> {
168 (0..platform::FD_SETSIZE as RawFd)

Callers 5

selectFunction · 0.45
pollMethod · 0.45
decompressMethod · 0.45
sumprodFunction · 0.45

Calls 2

FD_ZEROFunction · 0.85
as_mut_ptrMethod · 0.80

Tested by

no test coverage detected