Module bit

Source

MacrosΒ§

bitand_assign_impl πŸ”’
bitand_impl πŸ”’
bitor_assign_impl πŸ”’
bitor_impl πŸ”’
bitxor_assign_impl πŸ”’
bitxor_impl πŸ”’
not_impl πŸ”’
shl_assign_impl πŸ”’
shl_assign_impl_all πŸ”’
shl_impl πŸ”’
shl_impl_all πŸ”’
shr_assign_impl πŸ”’
shr_assign_impl_all πŸ”’
shr_impl πŸ”’
shr_impl_all πŸ”’

TraitsΒ§

BitAnd
The bitwise AND operator &.
BitAndAssign
The bitwise AND assignment operator &=.
BitOr
The bitwise OR operator |.
BitOrAssign
The bitwise OR assignment operator |=.
BitXor
The bitwise XOR operator ^.
BitXorAssign
The bitwise XOR assignment operator ^=.
Not
The unary logical negation operator !.
Shl
The left shift operator <<. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust’s type checker has special handling for _ << _, setting the result type for integer operations to the type of the left-hand-side operand. This means that though a << b and a.shl(b) are one and the same from an evaluation standpoint, they are different when it comes to type inference.
ShlAssign
The left shift assignment operator <<=.
Shr
The right shift operator >>. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust’s type checker has special handling for _ >> _, setting the result type for integer operations to the type of the left-hand-side operand. This means that though a >> b and a.shr(b) are one and the same from an evaluation standpoint, they are different when it comes to type inference.
ShrAssign
The right shift assignment operator >>=.