Skip to content

Instance Method

isCoercible(to:)

Returns true if concrete object is potentially directly coercible to a second type in some way
func isCoercible(to type: LeafData.NaturalType) -> Bool

Discussion

  • EG: .array() -> .dictionary() where array indices become keys or .int(1) -> .bool(true)

  • This does not validate the data itself in coercion