Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-rust-2e
/ g
Function
g
Source Code/19-10.rs:6–11 ·
view source on GitHub ↗
(a: T)
Source
from the content-addressed store, hash-verified
4
fn main() {
5
fn f<T>(a: T) -> T { a }
6
fn g<T>(a: T) -> T {
7
let b: T = a;
8
let mut c = b;
9
c = f(c);
10
c
11
}
12
fn h<T>(a: &T) -> &T { a }
13
}
Callers
nothing calls this directly
Calls
1
f
Function · 0.70
Tested by
no test coverage detected