fn add<T>(a: T, b: T) -> T
where
T: std::ops::Add<Output = T>,
{
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . 区块链的黑客松比赛,现在主流的主要是两大公链: | |
| (a) EVM 链:主要是编写 Solidity 合约相关的内容 | |
| (b) Solana:主要是用 Rust 开发 | |
| 2. 在区块链领域,目前主要就是这两种语言,可能还有一些用 Go 的 | |
| 3. 另外还有一个是 Sui,它使用的是 Move 语言 | |
| 4. 其他方面,最主要的前端交互肯定就是 TypeScript 了,这也是用得最多的。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # OCaml Code | |
| ```OCaml | |
| let languages = "ocaml,Perl,C++,C";; | |
| let dashed_language = | |
| let language = String.split_on_char ',' languages in | |
| String.concat "-" language;; | |
| ``` | |
| #Rust Code | |
| ```rust |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 关于Map的使用在Rust中 | |