LeftShift

public protocol LeftShift[Other = Int64]

Raw protocol backing the << operator.

Other defaults to Int64 — the standard shift count type. Conforming types may narrow this to a different count where appropriate.

Errors

Standard integer types panic on out-of-range shift counts (see the shiftLeft documentation on the integer types).

Associated Types

type Output

Methods

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

Returns self << count.

Defined in lang/std/core/bitwise.ks