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

Function main

examples/fmt.rs:38–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38fn main() -> Result<(), bitflags::parser::ParseError> {
39 let flags = Flags::A | Flags::B;
40
41 println!("{}", flags);
42
43 let formatted = flags.to_string();
44 let parsed: Flags = formatted.parse()?;
45
46 assert_eq!(flags, parsed);
47
48 Ok(())
49}

Callers

nothing calls this directly

Calls 1

OkClass · 0.85

Tested by

no test coverage detected