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

Function case

src/tests/truncate.rs:23–29  ·  view source on GitHub ↗
(mut before: T, after: T)

Source from the content-addressed store, hash-verified

21
22#[track_caller]
23fn case<T: Flags + std::fmt::Debug>(mut before: T, after: T)
24where
25 T: std::fmt::Debug + PartialEq + Copy,
26{
27 before.truncate();
28 assert_eq!(before, after, "{:?}.truncate()", before);
29}

Callers 1

casesFunction · 0.70

Calls 1

truncateMethod · 0.80

Tested by

no test coverage detected