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

Function search

crates/stdlib/src/select.rs:397–399  ·  view source on GitHub ↗
(fds: &[pollfd], fd: i32)

Source from the content-addressed store, hash-verified

395
396 #[inline]
397 fn search(fds: &[pollfd], fd: i32) -> Result<usize, usize> {
398 fds.binary_search_by_key(&fd, |pfd| pfd.fd)
399 }
400
401 fn insert_fd(fds: &mut Vec<pollfd>, fd: i32, events: i16) {
402 match search(fds, fd) {

Callers 3

insert_fdFunction · 0.70
get_fd_mutFunction · 0.70
remove_fdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected