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

Function cases

src/tests/clear.rs:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5#[test]
6fn cases() {
7 case(TestFlags::from_bits_retain(0));
8
9 case(TestFlags::from_bits_retain(1 << 3));
10
11 case(TestFlags::ABC | TestFlags::from_bits_retain(1 << 3));
12
13 case(TestZero::empty());
14
15 case(TestZero::all());
16
17 case(TestFlags::from_bits_retain(1 << 3) | TestFlags::all());
18}
19
20#[track_caller]
21fn case<T: Flags + std::fmt::Debug>(mut flags: T)

Callers

nothing calls this directly

Calls 1

caseFunction · 0.70

Tested by

no test coverage detected