Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A classic example is when you're writing a custom allocator and need to align the address.

Another is storing pointers in a hash table - you need to do arithmetic on the pointer bits to compute the hash.



I already designed several new convenience methods for making this kind of thing simple and the PR to rust-lang is already open :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: