verus-lang / verus

Verified Rust for low-level systems code
MIT License
1.06k stars 58 forks source link

Add documentation on type sizes #1188

Open hayley-leblanc opened 1 week ago

hayley-leblanc commented 1 week ago

This PR adds a new page to the docs with info on setting the size of Sized types for use in ghost code, including how to set the size of usize/isize. There was a small amount of documentation on usize/isize in the the Integers part of the tutorial, so to make it easier to keep the documentation in sync I moved this to the new file. I'm not sure whether it would be better to have this information in the tutorial or the reference, though, so I'm happy to move some/all of the documentation back to the tutorial if folks think that would be a better location for it.