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

Method invalid_named_flag

src/parser.rs:280–291  ·  view source on GitHub ↗

A named flag that doesn't correspond to any on the flags type was encountered.

(flag: impl fmt::Display)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

ParseErrorClass · 0.85

Tested by

no test coverage detected