Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ FunctionType
Function
FunctionType
crates/vm/src/stdlib/_types.rs:67–69 ·
view source on GitHub ↗
(vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
65
66
#[pyattr]
67
fn FunctionType(vm: &VirtualMachine) -> PyObjectRef {
68
vm.ctx.types.function_type.to_owned().into()
69
}
70
71
#[pyattr]
72
fn GeneratorType(vm: &VirtualMachine) -> PyObjectRef {
Callers
4
add_foreign_method
Method · 0.90
test_compile_top_level_await
Method · 0.90
test_no_source_file
Method · 0.90
ast_from_object
Method · 0.85
Calls
1
to_owned
Method · 0.45
Tested by
3
add_foreign_method
Method · 0.72
test_compile_top_level_await
Method · 0.72
test_no_source_file
Method · 0.72