• Home
  • Raw
  • Download

Lines Matching refs:ItemId

38 pub struct ItemId(usize);  struct
43 pub struct $name:ident(ItemId)
54 pub struct $name(ItemId);
59 let id: ItemId = self.into();
66 T: Copy + Into<ItemId>
69 let rhs: ItemId = (*rhs).into();
74 impl From<$name> for ItemId {
75 fn from(id: $name) -> ItemId {
80 impl<'a> From<&'a $name> for ItemId {
81 fn from(id: &'a $name) -> ItemId {
86 impl ItemId { impl
116 pub struct TypeId(ItemId)
135 pub struct ModuleId(ItemId)
154 pub struct VarId(ItemId)
173 pub struct FunctionId(ItemId)
189 impl From<ItemId> for usize {
190 fn from(id: ItemId) -> usize { in from()
195 impl ItemId { implementation
202 impl<T> ::std::cmp::PartialEq<T> for ItemId implementation
204 T: Copy + Into<ItemId>,
207 let rhs: ItemId = (*rhs).into(); in eq()
214 T: Copy + Into<ItemId>,
223 T: Copy + Into<ItemId>,
232 T: Copy + Into<ItemId>,
241 T: Copy + Into<ItemId>,
250 T: Copy + Into<ItemId>,
261 T: Copy + Into<ItemId>,
272 T: Copy + Into<ItemId>,
284 T: Copy + Into<ItemId>,
335 semantic_parents: HashMap<clang::Cursor, ItemId>,
358 replacements: HashMap<Vec<String>, ItemId>,
385 RefCell<HashMap<DeriveTrait, HashMap<ItemId, CanDerive>>>,
396 used_template_parameters: Option<HashMap<ItemId, ItemSet>>,
400 need_bitfield_allocation: Vec<ItemId>,
406 cannot_derive_debug: Option<HashSet<ItemId>>,
412 cannot_derive_default: Option<HashSet<ItemId>>,
418 cannot_derive_copy: Option<HashSet<ItemId>>,
424 cannot_derive_copy_in_array: Option<HashSet<ItemId>>,
430 cannot_derive_hash: Option<HashSet<ItemId>>,
437 cannot_derive_partialeq_or_partialord: Option<HashMap<ItemId, CanDerive>>,
449 have_vtable: Option<HashMap<ItemId, HasVtableResult>>,
455 have_destructor: Option<HashSet<ItemId>>,
461 has_type_param_in_array: Option<HashSet<ItemId>>,
467 has_float: Option<HashSet<ItemId>>,
476 Vec<ItemId>,
482 type Item = ItemId;
484 fn next(&mut self) -> Option<ItemId> { in next() argument
505 R: IntoIterator<Item = ItemId>, in new()
545 let root_module = Self::build_root_module(ItemId(0)); in new()
855 pub fn items(&self) -> impl Iterator<Item = (ItemId, &Item)> { in items()
858 Some((ItemId(index), item)) in items()
870 ) -> Vec<(ItemId, clang::Type, clang::Cursor, Option<ItemId>)> { in collect_typerefs() argument
935 fn with_loaned_item<F, T>(&mut self, id: ItemId, f: F) -> T in with_loaned_item() argument
974 let comp_item_ids: Vec<ItemId> = self in deanonymize_fields()
1052 let item_id: ItemId = id.into(); in process_replacements()
1071 let replacement_item_id: ItemId = replacement_id.into(); in process_replacements()
1336 item: ItemId, in uses_template_parameter() argument
1366 pub fn uses_any_template_parameters(&self, item: ItemId) -> bool { in uses_any_template_parameters()
1398 fn build_root_module(id: ItemId) -> Item { in build_root_module()
1435 pub fn resolve_item_fallible<Id: Into<ItemId>>( in resolve_item_fallible()
1445 pub fn resolve_item<Id: Into<ItemId>>(&self, item_id: Id) -> &Item { in resolve_item()
1469 parent_id: ItemId, in add_semantic_parent() argument
1478 ) -> Option<ItemId> { in known_semantic_parent() argument
1492 ) -> Option<(Cursor, ItemId, usize)> { in get_declaration_info_for_template_instantiation() argument
1580 with_id: ItemId, in instantiate_template() argument
1804 with_id: ItemId, in builtin_or_resolved_ty() argument
1805 parent_id: Option<ItemId>, in builtin_or_resolved_ty() argument
1874 with_id: ItemId, in build_ty_wrapper() argument
1876 parent_id: Option<ItemId>, in build_ty_wrapper() argument
1887 with_id: ItemId, in build_const_wrapper() argument
1889 parent_id: Option<ItemId>, in build_const_wrapper() argument
1899 with_id: ItemId, in build_wrapper() argument
1901 parent_id: Option<ItemId>, in build_wrapper() argument
1921 pub fn next_item_id(&mut self) -> ItemId { in next_item_id() argument
1922 let ret = ItemId(self.items.len()); in next_item_id()
2025 pub fn replace(&mut self, name: &[String], potential_ty: ItemId) { in replace() argument
2048 pub fn is_replaced_type<Id: Into<ItemId>>( in is_replaced_type()
2438 pub fn lookup_can_derive_debug<Id: Into<ItemId>>(&self, id: Id) -> bool { in lookup_can_derive_debug()
2465 pub fn lookup_can_derive_default<Id: Into<ItemId>>(&self, id: Id) -> bool { in lookup_can_derive_default()
2503 pub fn lookup_can_derive_hash<Id: Into<ItemId>>(&self, id: Id) -> bool { in lookup_can_derive_hash()
2532 pub fn lookup_can_derive_partialeq_or_partialord<Id: Into<ItemId>>( in lookup_can_derive_partialeq_or_partialord()
2553 pub fn lookup_can_derive_copy<Id: Into<ItemId>>(&self, id: Id) -> bool { in lookup_can_derive_copy()
2576 pub fn lookup_has_type_param_in_array<Id: Into<ItemId>>( in lookup_has_type_param_in_array()
2603 pub fn lookup_has_float<Id: Into<ItemId>>(&self, id: Id) -> bool { in lookup_has_float()
2648 id: ItemId,
2653 impl ItemId { implementation
2662 T: Into<ItemId>,
2671 pub fn new<Id: Into<ItemId>>(id: Id) -> ItemResolver { in new()
2726 id: ItemId,
2731 pub fn new(decl: Cursor, id: ItemId) -> PartialType { in new()
2743 pub fn id(&self) -> ItemId { in id() argument