MCPcopy Create free account
hub / github.com/bitflags/bitflags / invalid_hex_flag

Method invalid_hex_flag

src/parser.rs:266–277  ·  view source on GitHub ↗

An invalid hex flag was encountered.

(flag: impl fmt::Display)

Source from the content-addressed store, hash-verified

264impl 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 {

Callers

nothing calls this directly

Calls 1

ParseErrorClass · 0.85

Tested by

no test coverage detected