MCPcopy Create free account
hub / github.com/brimdata/super / IsUnionType

Function IsUnionType

type.go:346–349  ·  view source on GitHub ↗
(typ Type)

Source from the content-addressed store, hash-verified

344}
345
346func IsUnionType(typ Type) bool {
347 _, ok := TypeUnder(typ).(*TypeUnion)
348 return ok
349}
350
351func IsRecordType(typ Type) bool {
352 _, ok := TypeUnder(typ).(*TypeRecord)

Callers 2

formatTypeMethod · 0.92
decodePrimitiveMethod · 0.92

Calls 1

TypeUnderFunction · 0.85

Tested by

no test coverage detected