names(in:)

public func names<T>(in p: T) -> [(subfield: RecordPath, pattern: NamePattern.ID)] where T : PatternID

Returns the subfields and pattern IDs of the named patterns contained in p.