(&self, width: usize, fillchar: Self::Char, len: usize)
| 288 | } |
| 289 | |
| 290 | fn py_center(&self, width: usize, fillchar: Self::Char, len: usize) -> Self::Container { |
| 291 | let marg = width - len; |
| 292 | let left = marg / 2 + (marg & width & 1); |
| 293 | self.py_pad(left, marg - left, fillchar) |
| 294 | } |
| 295 | |
| 296 | fn py_ljust(&self, width: usize, fillchar: Self::Char, len: usize) -> Self::Container { |
| 297 | self.py_pad(0, width - len, fillchar) |