OptionType

public enum OptionType : Equatable
extension OptionType: Documentable

Type of an option.

Result builder

  • Operator enabling an easy way to create a configuration option.

    Declaration

    Swift

    static func => (key: String, value: OptionType) -> RuleConfigurationOption

    Parameters

    key

    Name of the option.

    value

    Value of the option.

    Return Value

    A configuration option built up by the given data.

  • Create an option defined by nested configuration description.

    Declaration

    Swift

    static func nest(@RuleConfigurationDescriptionBuilder _ description: () -> RuleConfigurationDescription) -> OptionType

    Parameters

    description

    A configuration description buildable by applying the result builder syntax.

    Return Value

    A configuration option with a value being another configuration description.