(&self, idx: usize, f: &mut dyn Write)
| 1292 | |
| 1293 | impl<'a> DisplayIndex for MyMoneyFormatter<'a> { |
| 1294 | fn write(&self, idx: usize, f: &mut dyn Write) -> crate::display::FormatResult { |
| 1295 | match self.array.is_valid(idx) { |
| 1296 | true => write!(f, "{} €", self.array.value(idx))?, |
| 1297 | false => write!(f, "{}", self.options.null())?, |
| 1298 | } |
| 1299 | |
| 1300 | Ok(()) |
| 1301 | } |
| 1302 | } |
| 1303 | |
| 1304 | /// The actual formatter |