- Mastering Rust
- Rahul Sharma Vesa Kaihlavirta
- 71字
- 2021-07-02 13:35:29
Creating generic types
Rust allows us to declare many things as generics such as structs, enums, functions, traits, methods, and implementation blocks. One thing that they have in common is that the generic type parameters are separated by and enclosed within a pair of < > brackets. Within them, you can put any number of comma-separated generic type parameters. Let's go through how you might create generics, starting by looking at generic functions.
推薦閱讀
- 深入理解Bootstrap
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- Securing WebLogic Server 12c
- SQL基礎教程(視頻教學版)
- Building Minecraft Server Modifications
- 精通Linux(第2版)
- QGIS By Example
- Visual Basic程序設計
- 響應式架構:消息模式Actor實現與Scala、Akka應用集成
- Python編程:從入門到實踐(第3版)
- 零基礎學Scratch 3.0編程
- Visual Basic語言程序設計基礎(第3版)
- Visual Basic程序設計實驗指導及考試指南
- Hack與HHVM權威指南
- Implementing Microsoft Dynamics NAV(Third Edition)