(args: Txt2ObjArgs, vm: &VirtualMachine)
| 417 | |
| 418 | #[pyfunction] |
| 419 | fn txt2obj(args: Txt2ObjArgs, vm: &VirtualMachine) -> PyResult<PyNid> { |
| 420 | _txt2obj(&args.txt.to_cstring(vm)?, !args.name) |
| 421 | .as_deref() |
| 422 | .ok_or_else(|| vm.new_value_error(format!("unknown object '{}'", args.txt))) |
| 423 | .and_then(|obj| obj2py(obj, vm)) |
| 424 | } |
| 425 | |
| 426 | #[pyfunction] |
| 427 | fn nid2obj(nid: libc::c_int, vm: &VirtualMachine) -> PyResult<PyNid> { |
nothing calls this directly
no test coverage detected