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

Method as_ref

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

Source from the content-addressed store, hash-verified

70
71impl AsRef<[u8]> for PyBytes {
72 fn as_ref(&self) -> &[u8] {
73 self.as_bytes()
74 }
75}
76impl AsRef<[u8]> for PyBytesRef {
77 fn as_ref(&self) -> &[u8] {

Callers

nothing calls this directly

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected