Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ Constant
Class
Constant
crates/vm/src/stdlib/_ast/constant.rs:7–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
6
#[derive(Debug)]
7
pub(super) struct Constant {
8
pub(super) range: TextRange,
9
pub(super) value: ConstantLiteral,
10
}
11
12
impl Constant {
13
pub(super) fn new_str(
Callers
8
ruff_fstring_element_to_joined_str_part
Function · 0.70
push_joined_str_literal
Function · 0.70
normalize_joined_str_parts
Function · 0.70
push_template_str_literal
Function · 0.70
normalize_template_str_parts
Function · 0.70
ast_from_object
Method · 0.70
fstring_to_object
Function · 0.70
ruff_tstring_element_to_template_str_part
Function · 0.70
Implementers
1
code.rs
crates/vm/src/builtins/code.rs
Calls
no outgoing calls
Tested by
no test coverage detected