Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
Source from the content-addressed store, hash-verified
| 357 | |
| 358 | impl Display for IntegerList { |
| 359 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 360 | f.write_char('[')?; |
| 361 | let mut iter = self.0.iter(); |
| 362 | if let Some(first) = iter.next() { |
| 363 | first.fmt(f)?; |
| 364 | for i in iter { |
| 365 | f.write_char(',')?; |
| 366 | i.fmt(f)?; |
| 367 | } |
| 368 | } |
| 369 | f.write_char(']') |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | #[derive(Error, Debug)] |
Callers
nothing calls this directly
Tested by
no test coverage detected