Fork me on GitHub
摘要: 点号操作会有一些神奇的类型转换发生。将auto-referencing,auto-dereferencing和强转直到类型匹配。 有个函数foo有一个参数(self, &self或者&mut self)。如果调用value.foo,在调用合适的函数实现之前,编译器需要决定什么类型的Self.为了更好 阅读全文
posted @ 2023-02-03 21:53 BabyMelvin 阅读(38) 评论(0) 推荐(0) 编辑