Re: [PATCH 2/6] rust: num: add `as_bool` method to `Bounded<_, 1>`

From: Alice Ryhl

Date: Tue Jan 20 2026 - 03:45:22 EST


On Tue, Jan 20, 2026 at 03:17:55PM +0900, Alexandre Courbot wrote:
> Single-bit numbers are typically treated as booleans. There is an
> `Into<bool>` implementation for those, but invoking it from contexts
> that lack type expectations is not always convenient.
>
> Add an `as_bool` method as a simpler shortcut.
>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>