Direction

public enum Direction : Codable, Sendable

The direction of a cast expression w.r.t. the type lattice.

  • up

    An upcast.

    Declaration

    Swift

    case up
  • An downcast.

    Declaration

    Swift

    case down
  • A built-in pointer conversion.

    Note

    built-in conversion expressions may only be used in the core library. The compiler shall emit a warning if one is found outside of core library sources.

    Declaration

    Swift

    case pointerConversion