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.
impl std::ops::BitOr for Signal
1 parent 202d182 commit 5abe0eaCopy full SHA for 5abe0ea
src/sys/signal.rs
@@ -593,6 +593,19 @@ impl From<Signal> for SigSet {
593
}
594
595
596
+
597
+impl std::ops::BitOr for Signal {
598
+ type Output = SigSet;
599
600
+ // rhs is the "right-hand side" of the expression `a | b`
601
+ fn bitor(self, rhs: Self) -> Self::Output {
602
+ let mut sigset = SigSet::empty();
603
+ sigset.add(self);
604
+ sigset.add(rhs);
605
+ sigset
606
+ }
607
+}
608
609
impl std::ops::BitOr for SigSet {
610
type Output = Self;
611
0 commit comments