(&self, f: &mut core::fmt::Formatter<'_>)
| 35 | |
| 36 | impl core::fmt::Debug for Cost { |
| 37 | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { |
| 38 | if *self == Cost::infinity() { |
| 39 | write!(f, "Cost::Infinite") |
| 40 | } else { |
| 41 | f.debug_tuple("Cost::Finite").field(&self.cost()).finish() |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | impl Cost { |