ProtocolSwift5.9.0
LosslessStringConvertible
A type that can be represented as a string in a lossless, unambiguous way.
protocol LosslessStringConvertible : CustomStringConvertible
For example, the integer value 1050 can be represented in its entirety as the string “1050”.
The description property of a conforming type must be a value-preserving representation of the original value. As such, it should be possible to re-create an instance from its string representation.
Supertypes
protocol CustomStringConvertible
A type with a customized textual representation.
Requirements
init?(String
) Instantiates an instance of the conforming type from a string representation.
Citizens in Swift
Subtypes
protocol FixedWidthInteger
An integer type that uses a fixed size for every instance.
protocol StringProtocol
A type that can represent a string as a collection of characters.
Extension in ArgumentParser
where Self:ExpressibleByArgument
Members
Extension in Atomics
Subtypes
protocol AtomicInteger
A type that supports atomic integer operations through a separate atomic storage representation.