RightShift

public protocol RightShift[Other = Int64]

Raw protocol backing the >> operator.

Behaviour for signed types is arithmetic shift (sign-preserving); unsigned types use logical shift. The Other default mirrors LeftShift.

Associated Types

type Output

Methods

consuming func shiftRight(by: consuming Other) -> Output

Returns self >> count.

Defined in lang/std/core/bitwise.ks