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

Method init_raw

crates/stdlib/src/lzma.rs:773–781  ·  view source on GitHub ↗
(
            filter_specs: Option<Vec<PyObjectRef>>,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

771 }
772
773 fn init_raw(
774 filter_specs: Option<Vec<PyObjectRef>>,
775 vm: &VirtualMachine,
776 ) -> PyResult<Stream> {
777 let filter_specs = filter_specs
778 .ok_or_else(|| vm.new_value_error("Must specify filters for FORMAT_RAW"))?;
779 let filters = parse_filter_chain_spec(filter_specs, vm)?;
780 Stream::new_raw_encoder(&filters).map_err(|e| catch_lzma_error(e, vm))
781 }
782 }
783
784 #[derive(FromArgs)]

Callers

nothing calls this directly

Calls 3

parse_filter_chain_specFunction · 0.85
catch_lzma_errorFunction · 0.85
ok_or_elseMethod · 0.80

Tested by

no test coverage detected