Re: [PATCH v2 03/12] rust: num: add Bounded::shr_exact

From: Danilo Krummrich

Date: Mon Aug 10 2026 - 18:27:35 EST


On Mon Aug 10, 2026 at 3:55 PM CEST, Eliot Courtney wrote:
> Add `shr_exact` in the vein of `try_shrink` which shifts a bounded right
> only if it loses no set bits. This is useful for getting a shifted down
> integer while simultaneously checking that it's aligned.
>
> Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>
> Acked-by: Alexandre Courbot <acourbot@xxxxxxxxxx>

Reviewed-by: Danilo Krummrich <dakr@xxxxxxxxxx>