UnsignedInteger
An integer type that can represent only nonnegative values.
protocol UnsignedInteger : BinaryInteger
Supertypes
protocol AdditiveArithmetic
A type with values that support addition and subtraction.
protocol BinaryInteger
An integer type with a binary representation.
protocol Comparable
A type that can be compared using the relational operators
<
,<=
,>=
, and>
.protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByIntegerLiteral
A type that can be initialized with an integer literal.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Numeric
A type with values that support multiplication.
protocol Strideable
A type representing continuous, one-dimensional values that can be offset and measured.
Citizens in Swift
Members
var magnitude: Self
The magnitude of this value.
Citizens in Swift
where Self:FixedWidthInteger
Members
static var max: Self
The maximum representable integer in this type.
static var min: Self
The minimum representable integer in this type.