pub fn kind_count(&self, kind: IndexKind) -> usize {
        match kind {
            IndexKind::ModuleHandle => self.module_handles.len(),
            IndexKind::StructHandle => self.struct_handles.len(),
            IndexKind::FunctionHandle => self.function_handles.len(),
            IndexKind::FieldHandle => self.field_handles.len(),
            IndexKind::StructDefInstantiation => self.struct_def_instantiations.len(),
            IndexKind::FunctionInstantiation => self.function_instantiations.len(),
            IndexKind::FieldInstantiation => self.field_instantiations.len(),
            IndexKind::StructDefinition => self.struct_defs.len(),
            IndexKind::FunctionDefinition => self.function_defs.len(),
            IndexKind::Signature => self.signatures.len(),
            IndexKind::Identifier => self.identifiers.len(),
            IndexKind::AddressIdentifier => self.address_identifiers.len(),
            IndexKind::ConstantPool => self.constant_pool.len(),
            // XXX these two don't seem to belong here
            other @ IndexKind::LocalPool
            | other @ IndexKind::CodeDefinition
            | other @ IndexKind::FieldDefinition
            | other @ IndexKind::TypeParameter
            | other @ IndexKind::MemberCount => unreachable!("invalid kind for count: {:?}", other),
        }
    }
/// Returns the count of a specific `IndexKind`
Returns the count of a specific `IndexKind`
Returns the count of a specific ` IndexKind `
pub fn kind_count(&self, kind: IndexKind) -> usize {
        match kind {
            IndexKind::ModuleHandle => self.module_handles.len(),
            IndexKind::StructHandle => self.struct_handles.len(),
            IndexKind::FunctionHandle => self.function_handles.len(),
            IndexKind::FieldHandle => self.field_handles.len(),
            IndexKind::StructDefInstantiation => self.struct_def_instantiations.len(),
            IndexKind::FunctionInstantiation => self.function_instantiations.len(),
            IndexKind::FieldInstantiation => self.field_instantiations.len(),
            IndexKind::StructDefinition => self.struct_defs.len(),
            IndexKind::FunctionDefinition => self.function_defs.len(),
            IndexKind::Signature => self.signatures.len(),
            IndexKind::Identifier => self.identifiers.len(),
            IndexKind::AddressIdentifier => self.address_identifiers.len(),
            IndexKind::ConstantPool => self.constant_pool.len(),
            // XXX these two don't seem to belong here
            other @ IndexKind::LocalPool
            | other @ IndexKind::CodeDefinition
            | other @ IndexKind::FieldDefinition
            | other @ IndexKind::TypeParameter
            | other @ IndexKind::MemberCount => unreachable!("invalid kind for count: {:?}", other),
        }
    }
pub fn kind_count ( & self , kind : IndexKind ) -> usize { match kind { IndexKind :: ModuleHandle => self . module_handles . len ( ) , IndexKind :: StructHandle => self . struct_handles . len ( ) , IndexKind :: FunctionHandle => self . function_handles . len ( ) , IndexKind :: FieldHandle => self . field_handles . len ( ) , IndexKind :: StructDefInstantiation => self . struct_def_instantiations . len ( ) , IndexKind :: FunctionInstantiation => self . function_instantiations . len ( ) , IndexKind :: FieldInstantiation => self . field_instantiations . len ( ) , IndexKind :: StructDefinition => self . struct_defs . len ( ) , IndexKind :: FunctionDefinition => self . function_defs . len ( ) , IndexKind :: Signature => self . signatures . len ( ) , IndexKind :: Identifier => self . identifiers . len ( ) , IndexKind :: AddressIdentifier => self . address_identifiers . len ( ) , IndexKind :: ConstantPool => self . constant_pool . len ( ) , // XXX these two don't seem to belong here other @ IndexKind :: LocalPool | other @ IndexKind :: CodeDefinition | other @ IndexKind :: FieldDefinition | other @ IndexKind :: TypeParameter | other @ IndexKind :: MemberCount => unreachable ! ( " " other ) , } }
Returns the count of a specific `IndexKind`
Returns the count of a specific ` IndexKind `
&self
kind
IndexKind
&self
kind
IndexKind