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

Method deref

crates/vm/src/builtins/bytes.rs:66–68  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

64 type Target = [u8];
65
66 fn deref(&self) -> &[u8] {
67 self.as_bytes()
68 }
69}
70
71impl AsRef<[u8]> for PyBytes {

Callers

nothing calls this directly

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected