rust/library/core/src/fmt
Thalia Archibald 0ca1c9c1dd Count char width at most once in Formatter::pad
When both width and precision flags are specified, then the character
width is counted twice. Instead, record the character width when
truncating it to the precision, so it does not need to be recomputed.
Simplify control flow so the cases are more clear.
2025-02-27 16:41:42 -08:00
..
builders.rs Mark std::fmt::from_fn as #[must_use] 2025-02-03 20:17:27 +00:00
float.rs Access members of FormattingOptions directly instead of via getters/setters 2024-12-05 21:48:36 +01:00
fmt_trait_method_doc.md Document proper usage of fmt::Error and fmt()'s Result. 2024-05-09 17:58:38 -07:00
mod.rs Count char width at most once in Formatter::pad 2025-02-27 16:41:42 -08:00
nofloat.rs Refactor floating macro and nofloat panic message 2024-10-15 22:27:06 +09:00
num.rs Auto merge of #136409 - TDecking:mul_hi, r=Mark-Simulacrum 2025-02-06 03:43:58 +00:00
rt.rs [generic_assert] Constify methods used by the formatting system 2025-01-05 20:49:04 -03:00