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

Function case

src/tests/clear.rs:21–27  ·  view source on GitHub ↗
(mut flags: T)

Source from the content-addressed store, hash-verified

19
20#[track_caller]
21fn case<T: Flags + std::fmt::Debug>(mut flags: T)
22where
23 T: std::fmt::Debug + PartialEq + Copy,
24{
25 flags.clear();
26 assert_eq!(flags, T::empty(), "{:?}.clear()", flags);
27}

Callers 1

casesFunction · 0.70

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected