AnyTerm
public struct AnyTerm : Sendable
extension AnyTerm: TermProtocol
extension AnyTerm: Equatable
extension AnyTerm: Hashable
extension AnyTerm: CustomStringConvertible
The compile-time representation of the value of an expression.
-
A shorthand for
^ErrorTerm().Declaration
Swift
public static let error: AnyTerm -
The value wrapped by this instance.
Declaration
Swift
private var wrapped: TermBox -
Creates a type-erased container wrapping the given instance.
Declaration
Swift
public init<T>(_ base: T) where T : TermProtocolParameters
baseA type to wrap.
-
Accesses value wrapped by this instance.
The
baseproperty can be cast back to its original type using one of the type casting operators (as?,as!, oras).Declaration
Swift
public var base: any TermProtocol { get } -
Declaration
Swift
public var flags: ValueFlags { get } -
Returns whether
lis syntactically equal tor.Declaration
Swift
public static func == (l: `Self`, r: `Self`) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher) -
Declaration
Swift
public var description: String { get }
View on GitHub