/// Return true if this is the type of a function (including aliases and modifiers).
Return true if this is the type of a function (including aliases and modifiers).
Return true if this is the type of a function ( including aliases and modifiers ) .
fn is_function(&self, hash: &FileHash) -> bool {
        match self.kind {
            TypeKind::Function(..) => true,
            TypeKind::Def(ref val) => match val.ty(hash) {
                Some(ty) => ty.is_function(hash),
                None => false,
            },
            TypeKind::Modifier(ref val) => match val.ty(hash) {
                Some(ty) => ty.is_function(hash),
                None => false,
            },
            TypeKind::Void
            | TypeKind::Struct(..)
            | TypeKind::Union(..)
            | TypeKind::Base(..)
            | TypeKind::Enumeration(..)
            | TypeKind::Array(..)
            | TypeKind::Unspecified(..)
            | TypeKind::PointerToMember(..)
            | TypeKind::Subrange(..) => false,
        }
    }
fn is_function ( & self , hash : & FileHash ) -> bool { match self . kind { TypeKind :: Function ( .. ) => true , TypeKind :: Def ( ref val ) => match val . ty ( hash ) { Some ( ty ) => ty . is_function ( hash ) , None => false , } , TypeKind :: Modifier ( ref val ) => match val . ty ( hash ) { Some ( ty ) => ty . is_function ( hash ) , None => false , } , TypeKind :: Void | TypeKind :: Struct ( .. ) | TypeKind :: Union ( .. ) | TypeKind :: Base ( .. ) | TypeKind :: Enumeration ( .. ) | TypeKind :: Array ( .. ) | TypeKind :: Unspecified ( .. ) | TypeKind :: PointerToMember ( .. ) | TypeKind :: Subrange ( .. ) => false , } }
Return true if this is the type of a function (including aliases and modifiers).
Return true if this is the type of a function ( including aliases and modifiers ) .
&self
hash
&FileHash