Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ reverse
Method
reverse
crates/vm/src/builtins/bytearray.rs:546–548 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
544
545
#[pymethod]
546
fn reverse(&self) {
547
self.borrow_buf_mut().reverse();
548
}
549
550
#[pymethod]
551
fn resize(&self, size: isize, vm: &VirtualMachine) -> PyResult<()> {
Callers
nothing calls this directly
Calls
1
borrow_buf_mut
Method · 0.45
Tested by
no test coverage detected