(&self, f: &mut fmt::Formatter<'_>)
| 359 | |
| 360 | impl fmt::Display for ApplyOptions { |
| 361 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 362 | let mode = if self.is_strict() { |
| 363 | "strict" |
| 364 | } else if self.is_lenient() { |
| 365 | "lenient" |
| 366 | } else { |
| 367 | "custom" |
| 368 | }; |
| 369 | |
| 370 | write!(f, "ApplyOptions({})", mode)?; |
| 371 | |
| 372 | if let Some(max) = self.max_operations { |
| 373 | write!(f, " [max: {}]", max)?; |
| 374 | } |
| 375 | |
| 376 | Ok(()) |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | // ApplyOptionsBuilder |
nothing calls this directly
no test coverage detected