XCode 26.2 日本語化計画
整数リテラルで初期化できる型。
標準ライブラリの整数型と浮動小数点型(Int、Double など)は、ExpressibleByIntegerLiteral プロトコルに準拠しています。これらの型全ての変数または定数は、整数リテラルを代入することで初期化できます。
カスタムの型に ExpressibleByIntegerLiteral の準拠を追加するには、必要なイニシャライザを実装します。
associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
整数リテラルを表す型。
必須
init(integerLiteral: Self.IntegerLiteralType)
指定された整数値に初期化されたインスタンスを作成します。
必須 デフォルトの実装が提供されます。
FixedWidthInteger
FloatingPoint
SignedNumeric
Float16
Int128
UInt128
protocol ExpressibleByFloatLiteral
浮動小数点リテラルで初期化できる型。
protocol ExpressibleByBooleanLiteral
ブール値リテラル true および false で初期化できる型。
protocol ExpressibleByNilLiteral
nil リテラル nil を使用して初期化できる型。
struct StaticBigInt
変更できない任意精度の符号付き整数。