logoalt Hacker News

Syttenyesterday at 4:21 PM1 replyview on HN

Another one that is missing in the article is &raw mut/const but it is purely for unsafe usage when you need a pointer to an unaligned field of a struct.


Replies

steveklabnikyesterday at 4:25 PM

&raw T/&raw mut T aren't pointer types, they're syntax for creating *const T/*mut T.

These aren't included in the article because they are not borrow checked, but you're right that if someone was trying to cover 100% of pointer types in Rust, raw pointers would be missing.

show 1 reply