Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ to_callable
Method
to_callable
crates/vm/src/protocol/callable.rs:10–12 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
8
impl PyObject {
9
#[inline]
10
pub fn to_callable(&self) -> Option<PyCallable<'_>> {
11
PyCallable::new(self)
12
}
13
14
#[inline]
15
pub fn is_callable(&self) -> bool {
Callers
8
trigger_signals
Function · 0.80
try_from_object
Method · 0.80
is_callable
Method · 0.80
call_with_args
Method · 0.80
vectorcall
Method · 0.80
sub_impl
Method · 0.80
start_new_thread
Function · 0.80
start_joinable_thread
Function · 0.80
Calls
1
new
Function · 0.85
Tested by
no test coverage detected