MCPcopy Create free account
hub / github.com/Glyphack/enderpy / as_python_compat

Method as_python_compat

parser/src/parser/compat.rs:15–21  ·  view source on GitHub ↗
(&self, parser: &Parser)

Source from the content-addressed store, hash-verified

13
14impl<T: AsPythonCompat> AsNullablePythonCompat<T> for Option<T> {
15 fn as_python_compat(&self, parser: &Parser) -> Value {
16 if let Some(v) = self {
17 v.as_python_compat(parser)
18 } else {
19 json!(null)
20 }
21 }
22}
23
24macro_rules! json_python_compat_node {

Callers 1

parse_enderpy_sourceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected