We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79c9df commit b6f26a7Copy full SHA for b6f26a7
src/sys/flags.rs
@@ -709,15 +709,21 @@ impl NodeFlags {
709
self.0
710
}
711
712
- pub fn contains<I>(&self, bit: I) -> bool where I: Into<Self> + Copy{
+ pub fn contains<I>(&self, bit: I) -> bool
713
+ where
714
+ I: Into<Self> + Copy,
715
+ {
716
bit.into().0 == 0 || (self.0 & bit.into().0) != 0
717
718
719
pub fn toggle(&mut self, bit: tsk_flags_t) {
720
self.0 ^= bit
721
722
- pub fn remove<I>(&mut self, bit: I) where I: Into<Self> {
723
+ pub fn remove<I>(&mut self, bit: I)
724
725
+ I: Into<Self>,
726
727
self.0 &= !bit.into().0
728
729
0 commit comments