std::ops::Add or core::ops::Add?
问题 These two traits (std::ops::Add, core::ops::Add) provide the same functionality, and they both use the same example (both utilize std::ops::Add ). Their set of implementors differ somewhat. Should one default to using std::ops::Add ? Why do both, as opposed to one, of them exist? 回答1: There aren't two traits. There is one trait which is exported under several interchangeable names. This is far from unique . Virtually everything in core is also exported from std , and virtually always under