Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ raw_opt
Method
raw_opt
crates/vm/src/stdlib/os.rs:59–61 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
57
58
#[inline]
59
pub(crate) fn raw_opt(self) -> Option<i32> {
60
self.get_opt().map(|fd| fd.as_raw())
61
}
62
63
#[inline(always)]
64
pub(crate) const fn get(self) -> crt_fd::Borrowed<'fd> {
Callers
5
remove
Function · 0.80
mknod
Method · 0.80
mkdir
Function · 0.80
rmdir
Function · 0.80
stat_inner
Function · 0.80
Calls
3
get_opt
Method · 0.80
map
Method · 0.45
as_raw
Method · 0.45
Tested by
no test coverage detected