Enumerationswift 6.0.1FoundationInternationalization
ListType
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
enum ListType
enum ListType
s30FoundationInternationalization15ListFormatStyleV0C4TypeO
What are these?8UQ3P
import FoundationInternationalization
struct ListFormatStyle<Style, Base> where Style : FormatStyle, Base : Sequence, Style.FormatInput == Base.Element, Style.FormatOutput == String
case and
case or
init(from decoder: any Decoder) throws
init(memberStyle: Style)
var listType: ListFormatStyle<Style, Base>.ListType
var locale: Locale
var width: ListFormatStyle<Style, Base>.Width
func format(_ value: Base) -> String
func locale(_ locale: Locale) -> ListFormatStyle<Style, Base>
enum Width
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(rawValue: Int)
init(from decoder: any Decoder) throws
Creates a new instance by decoding from the given decoder, when the type’s RawValue
is Int
.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func encode(to encoder: any Encoder) throws
Encodes this value into the given encoder, when the type’s RawValue
is Int
.
func hash(into hasher: inout Hasher)