MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / optional_c_ptr

Function optional_c_ptr

packages/server/src/native/bridge.rs:881–883  ·  view source on GitHub ↗
(value: &Option<CString>)

Source from the content-addressed store, hash-verified

879}
880
881fn optional_c_ptr(value: &Option<CString>) -> *const c_char {
882 value.as_ref().map_or(ptr::null(), |value| value.as_ptr())
883}
884
885pub fn log_entry_matches(entry: &LogEntry, filters: &LogFilters) -> bool {
886 if !filters.levels.is_empty()

Callers 1

create_simulatorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected