You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i256 Display and Debug ignore formatter width, fill, alignment and sign flags #10999
Display for i256 formats the value through a temporary BigInt with write!(f, "{}", bigint), which formats it with a default spec and discards the caller's. Every primitive integer applies the caller's spec through Formatter::pad_integral, and so does num_bigint::BigInt itself, so i256 is the only integer type in the workspace for which {:>8}, {:08}, {:+} and friends are no-ops.
i256 should honor the same formatting flags as the primitive integers: width, fill and alignment, the + sign flag, and 0 padding, for both Display and Debug.
Activity
neilconway commentedon Sep 5, 2026
take