UnionType
public struct UnionType : TypeProtocol
extension UnionType: Hashable
extension UnionType: CustomStringConvertible
A union of types.
-
The elements of a union type.
Declaration
Swift
public typealias Elements = [AnyType] -
The elements of the union.
Declaration
Swift
public let elements: Elements -
Declaration
Swift
public let flags: ValueFlags -
Creates an instance type with the specified elements.
Declaration
Swift
public init<S>(_ elements: S) where S : Sequence, S.Element == AnyType -
trueifselfis Hylo’sNevertype.Declaration
Swift
public var isNever: Bool { get } -
Declaration
Swift
public func transformParts<M>( mutating m: inout M, _ transformer: (inout M, AnyType) -> TypeTransformAction ) -> Self -
Declaration
Swift
public func hash(into hasher: inout Hasher) -
Declaration
Swift
public static func == (l: `Self`, r: `Self`) -> Bool -
Declaration
Swift
public var description: String { get }
View on GitHub