05-多重约束
多重约束 — Rust By Example
1分钟内可阅读完
译文 · 基于 Rust By Example
原文链接: https://doc.rust-lang.org/stable/rust-by-example/generics/multi_bounds.html
多重约束
多重约束(multiple bounds)可以用 + 连接。和平常一样,类型之间使用 , 隔开。
| |
1分钟内可阅读完
译文 · 基于 Rust By Example
原文链接: https://doc.rust-lang.org/stable/rust-by-example/generics/multi_bounds.html
多重约束(multiple bounds)可以用 + 连接。和平常一样,类型之间使用 , 隔开。
| |