pub enum BoolOp {
Negate,
And,
Or,
Xor,
}Expand description
Operations for boolean, single-bit inputs.
Variants§
Negate
Negate a single bit: !x.
And
The and operation of two bits: x & y.
Or
The inclusive-or of two bits: x | y.
Xor
The exclusive-or of two bits: x ^ y.
Trait Implementations§
Source§impl Ord for BoolOp
impl Ord for BoolOp
Source§impl PartialOrd for BoolOp
impl PartialOrd for BoolOp
impl Copy for BoolOp
impl Eq for BoolOp
impl StructuralPartialEq for BoolOp
Auto Trait Implementations§
impl Freeze for BoolOp
impl RefUnwindSafe for BoolOp
impl Send for BoolOp
impl Sync for BoolOp
impl Unpin for BoolOp
impl UnwindSafe for BoolOp
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