/// The size in bytes of an instance of this type.
The size in bytes of an instance of this type.
The size in bytes of an instance of this type .
pub fn byte_size(&self, hash: &FileHash) -> Option<u64> {
        match self.kind {
            TypeKind::Void => Some(0),
            TypeKind::Base(ref val) => val.byte_size(),
            TypeKind::Def(ref val) => val.byte_size(hash),
            TypeKind::Struct(ref val) => val.byte_size(),
            TypeKind::Union(ref val) => val.byte_size(),
            TypeKind::Enumeration(ref val) => val.byte_size(hash),
            TypeKind::Array(ref val) => val.byte_size(hash),
            TypeKind::Function(ref val) => val.byte_size(),
            TypeKind::Unspecified(..) => None,
            TypeKind::PointerToMember(ref val) => val.byte_size(hash),
            TypeKind::Modifier(ref val) => val.byte_size(hash),
            TypeKind::Subrange(ref val) => val.byte_size(hash),
        }
    }
pub fn byte_size ( & self , hash : & FileHash ) -> Option < u64 > { match self . kind { TypeKind :: Void => Some ( 0 ) , TypeKind :: Base ( ref val ) => val . byte_size ( ) , TypeKind :: Def ( ref val ) => val . byte_size ( hash ) , TypeKind :: Struct ( ref val ) => val . byte_size ( ) , TypeKind :: Union ( ref val ) => val . byte_size ( ) , TypeKind :: Enumeration ( ref val ) => val . byte_size ( hash ) , TypeKind :: Array ( ref val ) => val . byte_size ( hash ) , TypeKind :: Function ( ref val ) => val . byte_size ( ) , TypeKind :: Unspecified ( .. ) => None , TypeKind :: PointerToMember ( ref val ) => val . byte_size ( hash ) , TypeKind :: Modifier ( ref val ) => val . byte_size ( hash ) , TypeKind :: Subrange ( ref val ) => val . byte_size ( hash ) , } }
The size in bytes of an instance of this type.
The size in bytes of an instance of this type .
&self
hash
&FileHash