Skip to content

Type Method

case(of:)

Validates that the data can be converted to a value of an enum type with iterable cases.
static func `case`<E>(of enum: E.Type) -> Validator<T> where T : CustomStringConvertible, T == E.RawValue, E : CaseIterable, E : RawRepresentable, E : SendableMetatype