Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
336
pub fn close(fd: Owned) -> io::Result<()> {
337
_close(fd.into_raw())
338
}
339
340
pub fn ftruncate(fd: Borrowed<'_>, len: Offset) -> io::Result<()> {
341
let ret = unsafe { suppress_iph!(c::ftruncate(fd.as_raw(), len)) };
Callers
1
fopen
Function · 0.70
Calls
2
_close
Function · 0.85
into_raw
Method · 0.45
Tested by
no test coverage detected