pub fn collect_struct(&mut self, hir_struct: hir::Struct) {
        let type_info = self.db.type_info(hir_struct.ty(self.db));
        self.entries.insert(type_info);

        let fields = hir_struct.fields(self.db);
        for field in fields.into_iter() {
            self.collect_type(self.db.type_info(field.ty(self.db)));
        }
    }
/// Collects unique `TypeInfo` from the specified struct type.
Collects unique `TypeInfo` from the specified struct type.
Collects unique ` TypeInfo ` from the specified struct type .
pub fn collect_struct(&mut self, hir_struct: hir::Struct) {
        let type_info = self.db.type_info(hir_struct.ty(self.db));
        self.entries.insert(type_info);
        let fields = hir_struct.fields(self.db);
        for field in fields.into_iter() {
            self.collect_type(self.db.type_info(field.ty(self.db)));
        }
    }
pub fn collect_struct ( & mut self , hir_struct : hir :: Struct ) { let type_info = self . db . type_info ( hir_struct . ty ( self . db ) ) ; self . entries . insert ( type_info ) ; let fields = hir_struct . fields ( self . db ) ; for field in fields . into_iter ( ) { self . collect_type ( self . db . type_info ( field . ty ( self . db ) ) ) ; } }
Collects unique `TypeInfo` from the specified struct type.
Collects unique ` TypeInfo ` from the specified struct type .
&mut self
hir_struct
hir::Struct
&mut self
hir_struct
hir::Struct