Using primitive types from core or std

⚓ Rust    📅 2025-06-03    👤 surdeus    👁️ 3      

surdeus

Warning

This post was published 61 days ago. The information described in this article may have changed.

Hi. I'm learning Rust these days and have a (maybe stupid) question:
Where are the primitive types (isize, bool, ...) originally defined, in core or std lib?
In the docs it looks like they are implemented twice, but I think one library uses the implementation of the other. So: Which library should better be used e. g. for associated methods and constants like isize::MAX?
An what means the note "Deprecation planned" by the primitives in std?

Thanks for help!

7 posts - 5 participants

Read full topic

🏷️ rust_feed