原书出处
Rust 程序设计(第2版)
11 特型与泛型 11.1.2 泛型函数与类型参数
当你将 &mut local_file 传给泛型函数 say_hello() 时,其实调用的是 say_hello::<File>()。Rust 会为此函数生成一份机器码,以调用 File::write_all() 方法和 File::flush() 方法。
当你传入 &mut bytes 时,其实是在调用 say
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Rust 程序设计(第2版)/_epub-src/OEBPS/Text/part0000.xhtml
EPUB SHA-256:98f790484f9bffb9ef96f9568b4a86006e3b6a96f7c0c81b7406b60f16712e85