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

Method as_bytes

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

Source from the content-addressed store, hash-verified

216
217 #[inline]
218 pub fn as_bytes(&self) -> &[u8] {
219 self.inner.as_bytes()
220 }
221
222 #[pymethod]
223 fn __sizeof__(&self) -> usize {

Callers 8

derefMethod · 0.45
as_refMethod · 0.45
endswithMethod · 0.45
startswithMethod · 0.45
lstripMethod · 0.45
rstripMethod · 0.45
bytes.rsFile · 0.45
nextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected