GithubHelp home page GithubHelp logo

Comments (6)

sunface avatar sunface commented on July 23, 2024 2

Rust 的集合类型不能直接进行循环
https://github.com/sunface/rust-course/blob/main/book/contents/first-try/hello-world.md?plain=1#L46

但是,去掉 iter 也可以编译运行的。

for region in regions {
    println!("{}", &region);
}

这个在迭代器章节的开头有讲,是因为for隐式地将regions转换成迭代器

from rust-course.

JesseAtSZ avatar JesseAtSZ commented on July 23, 2024

深入生命周期
71行,这里的因果关系貌似颠倒了?应该是返回值的生命周期由入参的生命周期决定。
125行,没读懂无解生命周期与普通生命周期的区别
160行,为什么一个类型存在生命周期,我理解生命周期只存在于引用中,所以这里拿一个类型和一个引用的生命周期比较,有点不太理解

认识生命周期
517行那一段觉得还可以展开讲一下,“引用”、“被引用”这里有一点点读不懂

特征对象
特征对象的限制这个部分感觉讲得不是很清楚,294行那一段

from rust-course.

alanhe avatar alanhe commented on July 23, 2024

Rust 的集合类型不能直接进行循环
https://github.com/sunface/rust-course/blob/main/book/contents/first-try/hello-world.md?plain=1#L46

但是,去掉 iter 也可以编译运行的。

for region in regions {
    println!("{}", &region);
}

from rust-course.

butonly avatar butonly commented on July 23, 2024

https://course.rs/basic/base-type/index.html
https://github.com/sunface/rust-course/blob/main/book/contents/basic/base-type/index.md
元类型 译为 单元类型 是否更好一些?

from rust-course.

sunface avatar sunface commented on July 23, 2024

https://course.rs/basic/base-type/index.html
https://github.com/sunface/rust-course/blob/main/book/contents/basic/base-type/index.md
元类型 译为 单元类型 是否更好一些?

我很认同,因为元类型其实会跟meta type冲突,兄弟你可以去讨论区 开个讨论帖,大家一起讨论下

from rust-course.

sunface avatar sunface commented on July 23, 2024

我先关闭issue了,因为该issue是引导贴,建议和讨论请移步到Discussions板块

from rust-course.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.