Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ Literal
Class
Literal
crates/vm/src/builtins/code.rs:183–183 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
181
#[derive(Clone)]
182
#[repr(transparent)]
183
pub struct Literal(PyObjectRef);
184
185
impl Borrow<PyObject> for Literal {
186
fn borrow(&self) -> &PyObject {
Callers
14
from
Method · 0.70
make_constant
Method · 0.70
make_int
Method · 0.70
make_tuple
Method · 0.70
make_code
Method · 0.70
py_new
Method · 0.70
parse_literal
Method · 0.50
parse
Method · 0.50
sub_impl
Method · 0.50
ruff_fstring_element_into_iter
Function · 0.50
ruff_fstring_element_to_ruff_fstring_part
Function · 0.50
joined_str_part_to_ruff_fstring_element
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected