KaiserY
c385a728f6
fix actions
3 years ago
KaiserY
3d7be519d9
Update main.yml
3 years ago
KaiserY
5f0442a630
wip add pdf output
3 years ago
KaiserY
7cd5bf3a41
Merge pull request #587 from Live4dreamCH/patch-1
...
PR:修改7.4中pub use部分的表述
3 years ago
Live4dreamCH
bf15d06e34
PR:修改7.4中pub use部分的表述
...
您好!我是rust的初学者,在阅读pub use部分时没有太理解,于是去读了这部分的英文原文,并尝试着修改,使这段更简单易懂。
这是我第一次PR,如有不妥请您多多谅解!
以下是我的验证代码,可以通过编译。
```rust
// 我们所导入的mod
mod front_of_house {
pub mod hosting {
pub fn add_to_waitlist() {}
}
}
// 我们的mod
mod curr {
pub use crate::front_of_house::hosting; // 重导出
pub fn eat_at_restaurant() {
hosting::add_to_waitlist();
}
}
// 导入我们代码的mod
mod others {
use crate::curr;
pub fn others_fn() {
curr::hosting::add_to_waitlist(); // 使用重导出
curr::eat_at_restaurant();
}
}
fn main() {
others::others_fn();
println!("Hello, world!");
}
```
3 years ago
KaiserY
6983d4e013
fix minted
3 years ago
KaiserY
37a0a252eb
Merge pull request #586 from AtomAlpaca/main
...
fix ch02-00
3 years ago
AtomAlpaca
f2002a0445
fix ch02-00
3 years ago
KaiserY
91c7d02376
update to appendix-07
3 years ago
KaiserY
61292d1711
update to ch19-06
3 years ago
KaiserY
d7b0fa8065
update to ch18-03
3 years ago
KaiserY
5b156454d8
update to ch17-03
3 years ago
KaiserY
6493652a3b
update to ch16-04
3 years ago
KaiserY
946f5d5fc0
update to ch15-06
3 years ago
KaiserY
be4f7e7281
update to ch14-05
3 years ago
KaiserY
0635f02553
update to ch13-04
3 years ago
KaiserY
324244de9b
update to ch12-06
3 years ago
KaiserY
a059d1cf7e
Merge pull request #585 from tanliwei/patch-2
...
fix a typo
3 years ago
tanliwei
af1768d9f2
fix a typo
...
fix a typo
3 years ago
KaiserY
7e44e87a77
update to ch11-03
3 years ago
KaiserY
eaec47a9ed
update to ch10-03
3 years ago
KaiserY
95a46e3bb8
update to ch09-03
3 years ago
KaiserY
04370b76d3
Merge pull request #584 from manbucy/main
...
Update appendix-02-operators.md
3 years ago
manbucy
131256699c
Update appendix-02-operators.md
...
`%` 取模--> 取余
3 years ago
KaiserY
f625094908
update to ch08-03
3 years ago
KaiserY
4b0a9c80b2
update to ch07-05
3 years ago
KaiserY
f1b94ab927
update to ch06-03
3 years ago
KaiserY
7f827e9fab
update to ch05-03
3 years ago
KaiserY
b1a0ca6e85
update to ch04-02
3 years ago
KaiserY
23278a0c39
update to ch03-05
3 years ago
KaiserY
881c440e8b
Merge branch 'main' of https://github.com/KaiserY/trpl-zh-cn into main
3 years ago
KaiserY
951f1df20b
Merge branch 'master' into main
3 years ago
KaiserY
66cece121e
Update main.yml
3 years ago
KaiserY
956996e0e8
add listings code && update to ch02-00
3 years ago
KaiserY
f5a85c1355
Merge pull request #581 from tanliwei/patch-1
...
fix a typo
3 years ago
tanliwei
4343fff9c8
fix a typo
...
fix a typo
3 years ago
KaiserY
5557339a83
Merge pull request #580 from jinliming2/appendix-04
...
update appendix-04: replace rls to rust-analyzer
3 years ago
Liming Jin
54b2342e85
update appendix-04: replace rls to rust-analyzer
3 years ago
KaiserY
a62de9ef02
Merge pull request #579 from mnixry/patch-1
...
Fix some untranslated `Filename:`
3 years ago
Mix
95c930ba95
fix some untranslated `Filename:`
3 years ago
KaiserY
85fa0853a8
Merge pull request #578 from jinliming2/update-ch05-03
...
update ch05-03
3 years ago
Liming Jin
4024a81432
update ch05-03
3 years ago
KaiserY
397642d565
Merge pull request #577 from jinliming2/update-ch05-02
...
update ch05-02
3 years ago
Liming Jin
871911b4a2
update ch05-02
3 years ago
KaiserY
3f84f0c1f2
Merge pull request #576 from Sefank/Patch-2021-12-24
...
更新 title-page.md V2021-12-24
3 years ago
Sefank
3188f7a784
Update title-page.md to V2021-12-24
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
3 years ago
KaiserY
5069f33382
Merge pull request #575 from liuyunli/patch-1
...
fix: runtime penalty 运行时损耗
3 years ago
Yunli Liu
429cfa4222
fix: runtime penalty 运行时损耗
...
The number of times that Deref::deref needs to be inserted is resolved at compile time, so there is no runtime penalty for taking advantage of deref coercion!
这些解析都发生在编译时,所以利用 Deref 强制转换并没有运行时损耗!
3 years ago
KaiserY
bbee8ec6e4
Merge pull request #574 from makisevon/fix
...
fix: tiny mistakes
3 years ago
makisevon
317b7ab3be
fix: tiny mistakes
3 years ago