Constant

public protocol Constant : Hashable, Sendable

A constant value in Hylo IR.

  • The type of the value.

    Declaration

    Swift

    var type: IR.Type { get }
  • equals(_:) Default implementation

    Returns true if self is equal to other.

    Default Implementation

    Declaration

    Swift

    func equals(_ other: any Constant) -> Bool