关于 Self 的疑问 #392
AllenYu0118
started this conversation in
内容建议
关于 Self 的疑问
#392
Replies: 1 comment
-
感谢建议。。。已经进行了相应的优化 :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在 Rust 基础入门 - 2.8.4 章节 - 关联类型中:
上文有提到 Self 用来指代当前特征实例,但是在 提到过 的章节中,说明的是 Self 指代的是类型,self 才是实例。
以上两种说法感觉有些冲突,该如何正确理解呢?
Beta Was this translation helpful? Give feedback.
All reactions