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

Function close

crates/common/src/crt_fd.rs:336–338  ·  view source on GitHub ↗
(fd: Owned)

Source from the content-addressed store, hash-verified

334}
335
336pub fn close(fd: Owned) -> io::Result<()> {
337 _close(fd.into_raw())
338}
339
340pub fn ftruncate(fd: Borrowed<'_>, len: Offset) -> io::Result<()> {
341 let ret = unsafe { suppress_iph!(c::ftruncate(fd.as_raw(), len)) };

Callers 1

fopenFunction · 0.70

Calls 2

_closeFunction · 0.85
into_rawMethod · 0.45

Tested by

no test coverage detected