pub enum BitOp {
And,
Or,
Xor,
Shl,
Shr,
}
Expand description
A bitwise operation between 2 values
Variants
And
a & b
- Bitwise and
Or
a | b
- Bitwise or
Xor
a ^ b
- Bitwise xor
Shl
a << b
- Bit-shift leftwards
Shr
a >> b
- Bit-shift rightrights
Trait Implementations
sourceimpl Trace for BitOp
impl Trace for BitOp
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for BitOp
Auto Trait Implementations
impl RefUnwindSafe for BitOp
impl Send for BitOp
impl Sync for BitOp
impl Unpin for BitOp
impl UnwindSafe for BitOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more