pub fn defined_in(capability: Capability, version: ProtocolVersion) -> boolExpand description
Whether version’s schema defines capability.
An unknown revision defines nothing, for the same reason
transport_allowed denies: this build
has no wire types for it, so no flag in it can be trusted.
Not const: PartialEq on an enum is not a const-callable operator on
1.98, so the table walk cannot be one. The cost is a scan of at most
CAPABILITY_TABLE rows, and this is called from
resolve and the tests rather than per message;
CapabilitySet::restricted_to is the form that runs in bulk.