Skip to content

Structure

ValidatorResults.Case

ValidatorResult of a validator that validates whether the data can be represented as a specific Enum case.
struct Case<T, E> where T : CustomStringConvertible, T : Sendable, T == E.RawValue, E : CaseIterable, E : RawRepresentable, E : SendableMetatype

Topics

Instance Properties

  • enumType
    The type of the enum to check.
  • rawValue
    The raw value that would be tested against the enum type.

Default Implementations

Relationships

Conforms To

  • Swift.Copyable
  • Swift.Escapable
  • Swift.Sendable
  • Swift.SendableMetatype
  • ValidatorResult