#[non_exhaustive]pub enum BitwiseOperator {
And,
Or,
Xor,
Not,
ShiftLeft,
ShiftRight,
}Expand description
One bitwise operator, handed to
FormulaRenderer::render_bitwise_operator to spell.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
And
Both bits set: a & b on most engines.
Or
Either bit set: a | b.
Xor
Exactly one bit set: a ^ b on some engines, a # b on others.
Not
Every bit flipped, of one value: ~a.
ShiftLeft
The bits moved toward the high end: a << n.
ShiftRight
The bits moved toward the low end: a >> n.
Implementations§
Trait Implementations§
Source§impl Clone for BitwiseOperator
impl Clone for BitwiseOperator
impl Copy for BitwiseOperator
Source§impl Debug for BitwiseOperator
impl Debug for BitwiseOperator
impl Eq for BitwiseOperator
Source§impl Hash for BitwiseOperator
impl Hash for BitwiseOperator
Source§impl PartialEq for BitwiseOperator
impl PartialEq for BitwiseOperator
impl StructuralPartialEq for BitwiseOperator
Auto Trait Implementations§
impl Forget for BitwiseOperator
impl Freeze for BitwiseOperator
impl Move for BitwiseOperator
impl RefUnwindSafe for BitwiseOperator
impl Send for BitwiseOperator
impl Sync for BitwiseOperator
impl Unpin for BitwiseOperator
impl UnsafeUnpin for BitwiseOperator
impl UnwindSafe for BitwiseOperator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more