/// Return true if this is an anonymous type, or defined within an anonymous type.
Return true if this is an anonymous type, or defined within an anonymous type.
Return true if this is an anonymous type or defined within an anonymous type .
pub fn is_anon(&self) -> bool {
        match self.kind {
            TypeKind::Struct(ref val) => val.is_anon(),
            TypeKind::Union(ref val) => val.is_anon(),
            TypeKind::Void
            | TypeKind::Base(..)
            | TypeKind::Def(..)
            | TypeKind::Enumeration(..)
            | TypeKind::Array(..)
            | TypeKind::Function(..)
            | TypeKind::Unspecified(..)
            | TypeKind::PointerToMember(..)
            | TypeKind::Modifier(..)
            | TypeKind::Subrange(..) => false,
        }
    }
pub fn is_anon ( & self ) -> bool { match self . kind { TypeKind :: Struct ( ref val ) => val . is_anon ( ) , TypeKind :: Union ( ref val ) => val . is_anon ( ) , TypeKind :: Void | TypeKind :: Base ( .. ) | TypeKind :: Def ( .. ) | TypeKind :: Enumeration ( .. ) | TypeKind :: Array ( .. ) | TypeKind :: Function ( .. ) | TypeKind :: Unspecified ( .. ) | TypeKind :: PointerToMember ( .. ) | TypeKind :: Modifier ( .. ) | TypeKind :: Subrange ( .. ) => false , } }
Return true if this is an anonymous type, or defined within an anonymous type.
Return true if this is an anonymous type or defined within an anonymous type .
&self