ConcreteTerm

public struct ConcreteTerm : TermProtocol
extension ConcreteTerm: CustomStringConvertible

A box wrapping a concrete compile-time value.

  • The value of the term.

    WARNING: Don’t use downcasts from AnyHashableAndSendable directly, only on its wrapped .anyHashable object. .sendableValue as? T would try to downcast the user-defined AnyHashableAndSendable type, which doesn’t work like downcasting AnyHashable.

    Declaration

    Swift

    private let sendableValue: AnyHashableAndSendable
  • The value of the term.

    Declaration

    Swift

    public var value: AnyHashable { get }
  • Creates an instance with the given value.

    Declaration

    Swift

    public init(wrapping value: some Hashable & Sendable)
  • Declaration

    Swift

    public var flags: ValueFlags { get }
  • Declaration

    Swift

    public var description: String { get }