diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 098c7f40b..3f882a736 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -328,3 +328,23 @@ impl Function { | |||
328 | db.infer(self.def_id) | 328 | db.infer(self.def_id) |
329 | } | 329 | } |
330 | } | 330 | } |
331 | |||
332 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
333 | pub struct Const { | ||
334 | pub(crate) def_id: DefId, | ||
335 | } | ||
336 | |||
337 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
338 | pub struct Static { | ||
339 | pub(crate) def_id: DefId, | ||
340 | } | ||
341 | |||
342 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
343 | pub struct Trait { | ||
344 | pub(crate) def_id: DefId, | ||
345 | } | ||
346 | |||
347 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
348 | pub struct Type { | ||
349 | pub(crate) def_id: DefId, | ||
350 | } | ||