basic/crate-module/intro #782
Replies: 5 comments 2 replies
-
mod.rs的作用是不是忘了讲了 |
Beta Was this translation helpful? Give feedback.
-
这里的模块对应 python 里面的什么概念。 |
Beta Was this translation helpful? Give feedback.
-
单文件过大就又臃肿又杂乱,众所周知乱糟糟的地方会生🪳臭虫(bug) |
Beta Was this translation helpful? Give feedback.
-
博主编写的非常详细,但是照着写了之后还是无法成功编译,发现内容上虽然很详细但是并不适合照着敲代码实践。例如对于包结构的管理那块,我的结构如下: 一开始的时候,我创建了一个名为study的文件夹,里面新建了一个study.rs,在main.rs中无论如何都没办法引用成功。最后去别处查了资料才发现需要以下步骤: 如果可以增加项目结构、在描述各个模块功能的时候按照文件名称等进行标注,可能更加利于大家理解。 |
Beta Was this translation helpful? Give feedback.
-
package > crate > module |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
basic/crate-module/intro
https://course.rs/basic/crate-module/intro.html
Beta Was this translation helpful? Give feedback.
All reactions