MCPcopy 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

removeFunction · 0.80
mknodMethod · 0.80
mkdirFunction · 0.80
rmdirFunction · 0.80
stat_innerFunction · 0.80

Calls 3

get_optMethod · 0.80
mapMethod · 0.45
as_rawMethod · 0.45

Tested by

no test coverage detected