Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/enums/operators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,20 @@ pub enum LogicalOperator {
Xor,
}

/// Bitwise operators for integer values.
///
/// These operate on the integer bit patterns element-wise. Unary bitwise
/// complement is expressed through [`UnaryOperator::Not`].
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum BitwiseOperator {
/// Bitwise AND (`lhs & rhs`)
And,
/// Bitwise OR (`lhs | rhs`)
Or,
/// Bitwise XOR (`lhs ^ rhs`)
Xor,
}

/// Unary operators for single-operand transformations.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum UnaryOperator {
Expand Down
Loading
Loading