A named flag that doesn't correspond to any on the flags type was encountered.
(flag: impl fmt::Display)
| 278 | |
| 279 | /// A named flag that doesn't correspond to any on the flags type was encountered. |
| 280 | pub fn invalid_named_flag(flag: impl fmt::Display) -> Self { |
| 281 | let _flag = flag; |
| 282 | |
| 283 | let got = { |
| 284 | #[cfg(feature = "std")] |
| 285 | { |
| 286 | _flag.to_string() |
| 287 | } |
| 288 | }; |
| 289 | |
| 290 | ParseError(ParseErrorKind::InvalidNamedFlag { got }) |
| 291 | } |
| 292 | |
| 293 | /// A hex or named flag wasn't found between separators. |
| 294 | pub const fn empty_flag() -> Self { |