-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.P-mediumMedium priorityMedium priorityT-langRelevant to the language teamRelevant to the language teamWG-embeddedWorking group: Embedded systemsWorking group: Embedded systems
Description
Right now, usize
and isize
are "guaranteed" to be at least a byte long, but nothing more. It seems unlikely that Rust will support 8-bit targets in the future, but this is what the TryFrom
implementations indicate.
A lot of people assume that usize
will be at least 32 bits but this is not true for all platforms. I think that the docs should be clarified to make people more aware of this behaviour.
yanorei32
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.P-mediumMedium priorityMedium priorityT-langRelevant to the language teamRelevant to the language teamWG-embeddedWorking group: Embedded systemsWorking group: Embedded systems