MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / swap

Function swap

tests/binary/generics/src/main.rs:7–9  ·  view source on GitHub ↗

Generic function with two parameters

(a: T, b: U)

Source from the content-addressed store, hash-verified

5
6// Generic function with two parameters
7fn swap<T, U>(a: T, b: U) -> (U, T) {
8 (b, a)
9}
10
11// Generic struct
12#[derive(Clone, Copy)]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected