(&self, f: &mut std::fmt::Formatter)
| 24 | |
| 25 | impl std::fmt::Display for GridFormat { |
| 26 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
| 27 | match self { |
| 28 | // important: Should match clap::ValueEnum format |
| 29 | GridFormat::Graph => write!(f, "graph"), |
| 30 | GridFormat::Lines => write!(f, "lines"), |
| 31 | GridFormat::Points => write!(f, "points"), |
| 32 | #[cfg(feature = "cxx-bindings")] |
| 33 | GridFormat::Cells => write!(f, "cells"), |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | #[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)] |
nothing calls this directly
no outgoing calls
no test coverage detected