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

Function case

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

Source from the content-addressed store, hash-verified

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

Callers 1

casesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected