News for hackers. Stuff that matters.
Re:Learning Rust via Advent of Code by floofy222 on Monday February 04, 2019 @12:44PM (#19078570)
The #[rustc_layout_scalar_valid_range_start(...)] and #[rustc_layout_scalar_valid_range_end(...)] attribute allows you to specify a niche, so you can build a Non255U8 if you want. For example:

#[rustc_layout_scalar_valid_range_end(254)] struct Non255U8(u8);

There are no comments on this comment yet.