An invalid hex flag was encountered.
(flag: impl fmt::Display)
| 264 | impl ParseError { |
| 265 | /// An invalid hex flag was encountered. |
| 266 | pub fn invalid_hex_flag(flag: impl fmt::Display) -> Self { |
| 267 | let _flag = flag; |
| 268 | |
| 269 | let got = { |
| 270 | #[cfg(feature = "std")] |
| 271 | { |
| 272 | _flag.to_string() |
| 273 | } |
| 274 | }; |
| 275 | |
| 276 | ParseError(ParseErrorKind::InvalidHexFlag { got }) |
| 277 | } |
| 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 { |