FunctionKeyword

public enum FunctionKeyword : Hashable
extension FunctionKeyword: Comparable

Represents keywords on a function after the arguments

  • THe async keyword

    Declaration

    Swift

    case async
  • The throw or rethrows keyword. Represented as an associated value because in a given function, either throws or rethrows is used but not both at the same time

    Declaration

    Swift

    case throwing(ThrowKeyword)
  • Declaration

    Swift

    public static func < (lhs: FunctionKeyword, rhs: FunctionKeyword) -> Bool