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

Function case

src/tests/all_named.rs:15–21  ·  view source on GitHub ↗
(expected: T::Bits, inherent: impl FnOnce() -> T)

Source from the content-addressed store, hash-verified

13
14#[track_caller]
15fn case<T: Flags>(expected: T::Bits, inherent: impl FnOnce() -> T)
16where
17 <T as Flags>::Bits: std::fmt::Debug + PartialEq,
18{
19 assert_eq!(expected, inherent().bits(), "T::all_named()");
20 assert_eq!(expected, T::all_named().bits(), "Flags::all_named()");
21}

Callers 1

casesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected