Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
21
fn case<T: Flags + std::fmt::Debug>(mut flags: T)
22
where
23
T: std::fmt::Debug + PartialEq + Copy,
24
{
25
flags.clear();
26
assert_eq!(flags, T::empty(),
"{:?}.clear()"
, flags);
27
}
Callers
1
cases
Function · 0.70
Calls
1
clear
Method · 0.80
Tested by
no test coverage detected