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

Method contains

crates/stdlib/src/select.rs:159–161  ·  view source on GitHub ↗
(&mut self, fd: RawFd)

Source from the content-addressed store, hash-verified

157 }
158
159 pub fn contains(&mut self, fd: RawFd) -> bool {
160 unsafe { platform::FD_ISSET(fd, self.0.as_mut_ptr()) }
161 }
162
163 pub fn clear(&mut self) {
164 unsafe { platform::FD_ZERO(self.0.as_mut_ptr()) };

Callers 15

searchMethod · 0.45
copy_groupingFunction · 0.45
uu_a2b_readFunction · 0.45
b2a_qpFunction · 0.45
set_ciphersMethod · 0.45
set_ecdh_curveMethod · 0.45
new_py_ssl_socketMethod · 0.45
get_addrFunction · 0.45
highestMethod · 0.45
selectFunction · 0.45
getgrnamFunction · 0.45
check_signumFunction · 0.45

Calls 2

FD_ISSETFunction · 0.85
as_mut_ptrMethod · 0.80

Tested by

no test coverage detected