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

Method as_bytes

crates/vm/src/stdlib/_io.rs:2515–2520  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2513
2514 impl PendingWrite {
2515 fn as_bytes(&self) -> &[u8] {
2516 match self {
2517 Self::Utf8(s) => s.as_bytes(),
2518 Self::Bytes(b) => b.as_bytes(),
2519 }
2520 }
2521 }
2522
2523 impl PendingWrites {

Callers 15

_compare_digestFunction · 0.45
get_single_attrMethod · 0.45
writeMethod · 0.45
source_hashFunction · 0.45
_path_splitroot_exFunction · 0.45
_path_normpathFunction · 0.45
sleepFunction · 0.45
py2regFunction · 0.45
write_object_depthFunction · 0.45
readallMethod · 0.45
read_allMethod · 0.45
find_newlineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected