Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ remove_fd
Function
remove_fd
crates/stdlib/src/select.rs:419–421 ·
view source on GitHub ↗
(fds: &mut Vec<pollfd>, fd: i32)
Source
from the content-addressed store, hash-verified
417
}
418
419
fn remove_fd(fds: &mut Vec<pollfd>, fd: i32) -> Option<pollfd> {
420
search(fds, fd).ok().map(|i| fds.remove(i))
421
}
422
423
// new EventMask type
424
#[derive(Copy, Clone)]
Callers
1
unregister
Method · 0.85
Calls
4
ok
Method · 0.80
search
Function · 0.70
map
Method · 0.45
remove
Method · 0.45
Tested by
no test coverage detected