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

Method should_keep

crates/stdlib/src/posixsubprocess.rs:413–419  ·  view source on GitHub ↗
(self, fd: i32)

Source from the content-addressed store, hash-verified

411
412impl KeepFds<'_> {
413 fn should_keep(self, fd: i32) -> bool {
414 fd > self.above
415 && self
416 .keep
417 .binary_search_by_key(&fd, BorrowedFd::as_raw_fd)
418 .is_err()
419 }
420}
421
422fn close_fds(keep: KeepFds<'_>) {

Callers 2

close_dir_fdsFunction · 0.80
close_filetable_fdsFunction · 0.80

Calls 1

is_errMethod · 0.80

Tested by

no test coverage detected