BitwiseAnd

public protocol BitwiseAnd[Other = Self]

Raw protocol backing the & operator.

Implemented by every integer width; Output is Self for the standard integer types but may differ for SIMD or bitset wrappers.

Examples

0b1100 & 0b1010 // 0b1000

Associated Types

type Output

Methods

consuming func bitwiseAnd(consuming Other) -> Output

Returns self & other.

Defined in lang/std/core/bitwise.ks