Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ byteswap
Method
byteswap
crates/stdlib/src/array.rs:569–571 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
567
.map_err(|_| vm.new_type_error(
"array item must be unicode character"
))
568
}
569
fn byteswap(self) -> Self {
570
Self(self.0.swap_bytes())
571
}
572
fn to_object(self, _vm: &VirtualMachine) -> PyObjectRef {
573
unreachable!()
574
}
Callers
3
fromfile
Method · 0.80
test_byteswap
Method · 0.80
test_byteswap
Method · 0.80
Calls
2
Self
Function · 0.85
write
Method · 0.45
Tested by
3
fromfile
Method · 0.64
test_byteswap
Method · 0.64
test_byteswap
Method · 0.64