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

Function pack

crates/stdlib/src/pystruct.rs:106–108  ·  view source on GitHub ↗
(fmt: IntoStructFormatBytes, args: PosArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

104
105 #[pyfunction]
106 fn pack(fmt: IntoStructFormatBytes, args: PosArgs, vm: &VirtualMachine) -> PyResult<Vec<u8>> {
107 fmt.format_spec(vm)?.pack(args.into_vec(), vm)
108 }
109
110 #[pyfunction]
111 fn pack_into(

Callers 11

commit_frameMethod · 0.90
dumpMethod · 0.90
putMethod · 0.90
getMethod · 0.90
save_longMethod · 0.90
save_floatMethod · 0.90
_save_bytes_no_memoMethod · 0.90
save_strMethod · 0.90
save_globalMethod · 0.90
pack_intoMethod · 0.50

Calls 3

packMethod · 0.45
format_specMethod · 0.45
into_vecMethod · 0.45

Tested by

no test coverage detected