mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2025-01-13 22:00:50 +08:00
Refining Ch07.
This commit is contained in:
parent
cda727fba7
commit
c773279aef
@ -75,13 +75,15 @@ pub mod vegetables;
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
而语句 `pub mod vegetables;` 表示在 `src/garden/vetables.rs` 中的代码也会被编译器包含:
|
在这里,`pub mod vegetables;` 表示也包含了 `src/garden/vegetables.rs` 中的代码。这些代码是:
|
||||||
|
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Asparagus {}
|
pub struct Asparagus {}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
现在就来进入到这些规则的细节,并在实际操作中对他们进行演示吧!
|
现在就来进入到这些规则的细节,并在实际操作中对他们进行演示吧!
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user