Enumerationswift 6.0.1FoundationEssentials
Component
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
enum Component
enum Component
s20FoundationEssentials15AttributeScopesO0A10AttributesV019PersonNameComponentC0O0H0O
What are these?6SNMR
import FoundationEssentials
@frozen enum PersonNameComponentAttribute
@frozen enum AttributeScopes
struct FoundationAttributes
case delimiter
case familyName
case givenName
case middleName
case namePrefix
case nameSuffix
case nickname
static let name: String
typealias Value = AttributeScopes.FoundationAttributes.PersonNameComponentAttribute.Component
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: String)
init(from decoder: any Decoder) throws
Creates a new instance by decoding from the given decoder, when the type’s RawValue
is String
.
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 String
.
func hash(into hasher: inout Hasher)