returns the single type if there is exactly one, otherwise raises Error::AmbiguousType. Earlier revisions of this port returned InvalidType when the count was 0 — the reference uses the same AmbiguousType variant for both 0 and >1 cases.
Error::AmbiguousType
InvalidType
AmbiguousType
EnvelopeError with code AmbiguousType.
returns the single type if there is exactly one, otherwise raises
Error::AmbiguousType. Earlier revisions of this port returnedInvalidTypewhen the count was 0 — the reference uses the sameAmbiguousTypevariant for both 0 and >1 cases.