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

Function format

tests/compile-pass/parser_strict_non_hex_bits.rs:3–5  ·  view source on GitHub ↗
(flags: B)

Source from the content-addressed store, hash-verified

1// NOTE: Missing `B::Bits: WriteHex/ParseHex`
2
3pub fn format<B: bitflags::Flags>(flags: B) {
4 let _ = bitflags::parser::to_writer_strict(&flags, String::new());
5}
6
7pub fn parse<B: bitflags::Flags>(input: &str) {
8 let _ = bitflags::parser::from_str_strict::<B>(input);

Callers

nothing calls this directly

Calls 1

to_writer_strictFunction · 0.85

Tested by

no test coverage detected