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

Method get_incremental_encoder

crates/vm/src/codecs.rs:114–124  ·  view source on GitHub ↗
(
        &self,
        errors: Option<PyStrRef>,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

112 }
113
114 pub fn get_incremental_encoder(
115 &self,
116 errors: Option<PyStrRef>,
117 vm: &VirtualMachine,
118 ) -> PyResult {
119 let args = match errors {
120 Some(e) => vec![e.into()],
121 None => vec![],
122 };
123 vm.call_method(self.0.as_object(), "incrementalencoder", args)
124 }
125
126 pub fn get_incremental_decoder(
127 &self,

Callers 1

find_coderMethod · 0.80

Calls 2

call_methodMethod · 0.45
as_objectMethod · 0.45

Tested by

no test coverage detected