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

Method make_decode_error

crates/stdlib/src/json.rs:620–629  ·  view source on GitHub ↗

Create a decode error.

(
            &self,
            msg: &str,
            s: PyUtf8StrRef,
            pos: usize,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

618
619 /// Create a decode error.
620 fn make_decode_error(
621 &self,
622 msg: &str,
623 s: PyUtf8StrRef,
624 pos: usize,
625 vm: &VirtualMachine,
626 ) -> PyBaseExceptionRef {
627 let err = machinery::DecodeError::new(msg, pos);
628 py_decode_error(err, s.into_wtf8(), vm)
629 }
630 }
631
632 impl Callable for JsonScanner {

Callers 3

parse_objectMethod · 0.80
parse_arrayMethod · 0.80
call_scan_onceMethod · 0.80

Calls 3

newFunction · 0.85
py_decode_errorFunction · 0.85
into_wtf8Method · 0.80

Tested by

no test coverage detected