File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
15
15
([ #1959 ] ( https://github.com/nix-rust/nix/pull/1959 ) )
16
16
- Added ` impl std::ops::BitOr for SigSet ` .
17
17
([ #1959 ] ( https://github.com/nix-rust/nix/pull/1959 ) )
18
+ - Added ` impl std::ops::BitOr for Signal ` .
19
+ ([ #1959 ] ( https://github.com/nix-rust/nix/pull/1959 ) )
18
20
19
21
### Changed
20
22
Original file line number Diff line number Diff line change @@ -612,6 +612,19 @@ impl From<Signal> for SigSet {
612
612
}
613
613
}
614
614
615
+
616
+ impl std:: ops:: BitOr for Signal {
617
+ type Output = SigSet ;
618
+
619
+ // rhs is the "right-hand side" of the expression `a | b`
620
+ fn bitor( self , rhs: Self ) -> Self :: Output {
621
+ let mut sigset = SigSet :: empty( ) ;
622
+ sigset. add( self ) ;
623
+ sigset. add( rhs) ;
624
+ sigset
625
+ }
626
+ }
627
+
615
628
impl std:: ops:: BitOr for SigSet {
616
629
type Output = Self ;
617
630
You can’t perform that action at this time.
0 commit comments