MCPcopy Index your code
hub / github.com/RustPython/RustPython / new_bytes

Method new_bytes

crates/vm/src/stdlib/_ast/constant.rs:46–51  ·  view source on GitHub ↗
(value: Box<[u8]>, range: TextRange)

Source from the content-addressed store, hash-verified

44 }
45
46 pub(super) const fn new_bytes(value: Box<[u8]>, range: TextRange) -> Self {
47 Self {
48 range,
49 value: ConstantLiteral::Bytes(value),
50 }
51 }
52
53 pub(super) const fn new_bool(value: bool, range: TextRange) -> Self {
54 Self {

Callers 15

_path_normpathFunction · 0.45
decode_source_bytesFunction · 0.45
reg_to_pyFunction · 0.45
make_bytesMethod · 0.45
sliceMethod · 0.45
set_decoder_stateMethod · 0.45
tellMethod · 0.45
getstateMethod · 0.45
getvalueMethod · 0.45
readallMethod · 0.45
readMethod · 0.45
getbufferMethod · 0.45

Calls 1

BytesClass · 0.85

Tested by

no test coverage detected