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

Function cases

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

Source from the content-addressed store, hash-verified

4
5#[test]
6fn cases() {
7 case(0, TestFlags::empty);
8
9 case(0, TestZero::empty);
10
11 case(0, TestEmpty::empty);
12
13 case(0, TestExternal::empty);
14}
15
16#[track_caller]
17fn case<T: Flags>(expected: T::Bits, inherent: impl FnOnce() -> T)

Callers

nothing calls this directly

Calls 1

caseFunction · 0.70

Tested by

no test coverage detected