NormalEnumCase

public struct NormalEnumCase : MixableEnumCase

A Fragment that is rendered as a normal enum case

  • Initializer

    Declaration

    Swift

    @inlinable
    public init(name: String)

    Parameters

    name

    The name of the case

  • The name of the enum case

    Declaration

    Swift

    public let name: String
  • Renders this NormalEnumCase as a string.

    The String format is as follows:

    "case \(self.name)"
    

    Declaration

    Swift

    @inlinable
    public func renderContent() -> String