File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,19 @@ public protocol Integer : ${IntegerBase} {
268
268
@warn_unused_result
269
269
func isLess( than rhs: Self ) -> Bool
270
270
271
+ /// Creates an instance of `Self` from the value of any other `Integer`,
272
+ /// trapping if value of `source` cannot be represented by `Self`.
271
273
init< T : Integer> ( _ source: T )
274
+
275
+ /// Creates in instance of `Self` from the value of any other `Integer`,
276
+ /// using bits from `source` up to the available width of `Self`, if `T` is
277
+ /// wider than `Self`, and filling extra bits on the left with sign bit
278
+ /// value otherwise.
272
279
init< T : Integer> ( extendingOrTruncating source: T )
280
+
281
+ /// Creates in instance of `Self` from the value of any other `Integer`,
282
+ /// resulting in `Self.min` (or `Self.max`) if the value cannot be represented
283
+ /// by `Self`, and exact value of `source` otherwise.
273
284
init< T : Integer> ( clamping source: T )
274
285
275
286
/// Return n-th word in the underlying representation of `self`.
You can’t perform that action at this time.
0 commit comments