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

Method as_ptr

crates/stdlib/src/syslog.rs:51–56  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

49
50 impl GlobalIdent {
51 fn as_ptr(&self) -> *const c_char {
52 match self {
53 Self::Explicit(cstr) => cstr.as_ptr(),
54 Self::Implicit => core::ptr::null(),
55 }
56 }
57 }
58
59 fn global_ident() -> &'static PyRwLock<Option<GlobalIdent>> {

Callers 2

openlogFunction · 0.45
syslogFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected