MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / optref

Function optref

src/py_class/py_class_impl.py:674–678  ·  view source on GitHub ↗
(arg, suffix = "")

Source from the content-addressed store, hash-verified

672 additional_slots=()
673):
674 def optref(arg, suffix = ""):
675 if arg.allow_ref:
676 return "Option<&$%s_name%s>" % (arg.name, suffix)
677 else:
678 return "$%s_name%s" % (arg.name, suffix)
679
680 def ref(arg, suffix = ""):
681 if arg.allow_ref:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected