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

Function is_invalid_handle

crates/vm/src/stdlib/_io.rs:6023–6025  ·  view source on GitHub ↗
(handle: HANDLE)

Source from the content-addressed store, hash-verified

6021 }
6022
6023 fn is_invalid_handle(handle: HANDLE) -> bool {
6024 handle == INVALID_HANDLE_VALUE || handle.is_null()
6025 }
6026
6027 /// Check if a HANDLE is a console and what type ('r', 'w', or '\0').
6028 fn get_console_type(handle: HANDLE) -> char {

Callers 6

get_console_typeFunction · 0.85
initMethod · 0.85
readintoMethod · 0.85
readallMethod · 0.85
readMethod · 0.85
writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected