zlacker

[parent] [thread] 0 comments
1. J_Shel+(OP)[view] [source] 2025-12-05 20:24:48
If let is probably the closest to a regular bool.

For ints you can implement the deref trait on structs. So you can treat YourType(u64) as a u64 without destructing. I couldn’t figure out a way to do that with YouType(bool).

[go to top]