MCPcopy 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

fromfileMethod · 0.80
test_byteswapMethod · 0.80
test_byteswapMethod · 0.80

Calls 2

SelfFunction · 0.85
writeMethod · 0.45

Tested by 3

fromfileMethod · 0.64
test_byteswapMethod · 0.64
test_byteswapMethod · 0.64