Skip to content

Commit 603b8d9

Browse files
committed
Add ShlAssign, ShrAssign
1 parent 9bb30f8 commit 603b8d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,6 +2759,10 @@ mod assign_ops {
27592759
"Perform `self |= rhs` as elementwise bit or (in place).\n");
27602760
impl_assign_op!(BitXorAssign, bitxor_assign,
27612761
"Perform `self ^= rhs` as elementwise bit xor (in place).\n");
2762+
impl_assign_op!(ShlAssign, shl_assign,
2763+
"Perform `self <<= rhs` as elementwise left shift (in place).\n");
2764+
impl_assign_op!(ShrAssign, shr_assign,
2765+
"Perform `self >>= rhs` as elementwise right shift (in place).\n");
27622766
}
27632767

27642768
/// # Methods for Array Views

0 commit comments

Comments
 (0)