MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / bitcast

Function bitcast

crates/rust/src/lib.rs:1824–1828  ·  view source on GitHub ↗
(casts: &[Bitcast], operands: &[String], results: &mut Vec<String>)

Source from the content-addressed store, hash-verified

1822}
1823
1824fn bitcast(casts: &[Bitcast], operands: &[String], results: &mut Vec<String>) {
1825 for (cast, operand) in casts.iter().zip(operands) {
1826 results.push(perform_cast(operand, cast));
1827 }
1828}
1829
1830fn perform_cast(operand: &str, cast: &Bitcast) -> String {
1831 match cast {

Callers 1

emitMethod · 0.85

Calls 3

perform_castFunction · 0.70
iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected