Skip to main content

Module integer

Module integer 

Source
Expand description

整数値の min/max と、組み込み整数型向けの小さな拡張を提供します。

Traits§

IntegerExt
組み込み整数型に便利な整数演算を追加する拡張トレイトです。

Functions§

max
lhs と rhs のうち大きい方を返します。
min
lhs と rhs のうち小さい方を返します。
minmax
スライス内の最小値と最大値への参照を (最小, 最大) の順で返します。